MCPcopy
hub / github.com/perkeep/perkeep / genLowLevelConfig

Function genLowLevelConfig

pkg/serverinit/genconfig.go:52–60  ·  view source on GitHub ↗

genLowLevelConfig returns a low-level config from a high-level config.

(conf *serverconfig.Config)

Source from the content-addressed store, hash-verified

50
51// genLowLevelConfig returns a low-level config from a high-level config.
52func genLowLevelConfig(conf *serverconfig.Config) (lowLevelConf *Config, err error) {
53 b := &lowBuilder{
54 high: conf,
55 low: jsonconfig.Obj{
56 "prefixes": make(map[string]interface{}),
57 },
58 }
59 return b.build()
60}
61
62// A lowBuilder builds a low-level config from a high-level config.
63type lowBuilder struct {

Callers 2

DefaultEnvConfigFunction · 0.85
loadFunction · 0.85

Calls 1

buildMethod · 0.95

Tested by

no test coverage detected