MCPcopy Create free account
hub / github.com/AdRoll/baker / newMetricsDoc

Function newMetricsDoc

help_config.go:101–114  ·  view source on GitHub ↗
(desc MetricsDesc)

Source from the content-addressed store, hash-verified

99}
100
101func newMetricsDoc(desc MetricsDesc) (metricsDoc, error) {
102 doc := metricsDoc{
103 name: desc.Name,
104 }
105
106 var err error
107
108 doc.keys, err = configKeysFromStruct(desc.Config)
109 if err != nil {
110 return doc, fmt.Errorf("metrics %q: %v", desc.Name, err)
111 }
112
113 return doc, nil
114}
115
116type helpConfigKey struct {
117 name string // config key name

Callers 3

GenerateMarkdownHelpFunction · 0.85
Test_newMetricsDocFunction · 0.85
GenerateTextHelpFunction · 0.85

Calls 1

configKeysFromStructFunction · 0.85

Tested by 1

Test_newMetricsDocFunction · 0.68