MCPcopy Index your code
hub / github.com/rilldata/rill / Proto

Method Proto

runtime/parser/parse_component.go:28–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (y *ComponentVariableYAML) Proto() (*runtimev1.ComponentVariable, error) {
29 if y == nil {
30 return nil, fmt.Errorf("is empty")
31 }
32 val, err := structpb.NewValue(y.Value)
33 if err != nil {
34 panic(fmt.Errorf("invalid default value: %w", err))
35 }
36 return &runtimev1.ComponentVariable{
37 Name: y.Name,
38 Type: y.Type,
39 DefaultValue: val,
40 }, nil
41}
42
43func (p *Parser) parseComponent(node *Node) error {
44 // Parse YAML

Callers 8

parseExploreMethod · 0.45
parseComponentYAMLMethod · 0.45
parseMetricsViewMethod · 0.45
parseCanvasMethod · 0.45
parseAPIMethod · 0.45
HealthMethod · 0.45
InstanceHealthMethod · 0.45

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected