MCPcopy Index your code
hub / github.com/cortexproject/cortex / newDefaultConfig

Function newDefaultConfig

pkg/cortex/modules.go:105–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103)
104
105func newDefaultConfig() *Config {
106 defaultConfig := &Config{}
107 defaultFS := flag.NewFlagSet("", flag.PanicOnError)
108 defaultConfig.RegisterFlags(defaultFS)
109 return defaultConfig
110}
111
112func (t *Cortex) initAPI() (services.Service, error) {
113 t.Cfg.API.ServerPrefix = t.Cfg.Server.PathPrefix

Callers 6

initAPIMethod · 0.85
TestConfigValidationFunction · 0.85
TestAPIConfigFunction · 0.85
Test_setupModuleManagerFunction · 0.85

Calls 1

RegisterFlagsMethod · 0.95

Tested by 5

TestConfigValidationFunction · 0.68
TestAPIConfigFunction · 0.68
Test_setupModuleManagerFunction · 0.68