MCPcopy Create free account
hub / github.com/cortexproject/cortex / Validate

Method Validate

pkg/api/api.go:111–116  ·  view source on GitHub ↗

validate config

()

Source from the content-addressed store, hash-verified

109
110// validate config
111func (cfg *Config) Validate() error {
112 if cfg.QuerierDefaultCodec != "json" && cfg.QuerierDefaultCodec != "protobuf" {
113 return errUnsupportedDefaultCodec
114 }
115 return nil
116}
117
118// Push either wraps the distributor push function as configured or returns the distributor push directly.
119func (cfg *Config) wrapDistributorPush(d *distributor.Distributor) push.Func {

Callers 4

TestConfig_ValidateFunction · 0.45
NewFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestConfig_ValidateFunction · 0.36