validate config
()
| 109 | |
| 110 | // validate config |
| 111 | func (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. |
| 119 | func (cfg *Config) wrapDistributorPush(d *distributor.Distributor) push.Func { |
no outgoing calls