MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / NewConfig

Function NewConfig

config/config.go:37–50  ·  view source on GitHub ↗

NewConfig creates a new config with a given viper config if given

(cfgs ...*viper.Viper)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

ConfigureFunction · 0.92
setupFunction · 0.92
TestNewStatsdReporterFunction · 0.92
TestReportLatencyFunction · 0.92
TestReportLatencyErrorFunction · 0.92
TestReportCountFunction · 0.92
TestReportCountErrorFunction · 0.92
InitMethod · 0.92
mainFunction · 0.92
InitMethod · 0.92
configureFrontendFunction · 0.92

Calls 1

fillDefaultValuesMethod · 0.95

Tested by 13

setupFunction · 0.74
TestNewStatsdReporterFunction · 0.74
TestReportLatencyFunction · 0.74
TestReportLatencyErrorFunction · 0.74
TestReportCountFunction · 0.74
TestReportCountErrorFunction · 0.74
TestNewConfigFunction · 0.68
TestGetDurationFunction · 0.68
TestGetStringFunction · 0.68
TestGetIntFunction · 0.68
TestGetStringSliceFunction · 0.68