MCPcopy Create free account
hub / github.com/devfeel/dotweb / NewConfig

Function NewConfig

config/configs.go:134–141  ·  view source on GitHub ↗

NewConfig create new config

()

Source from the content-addressed store, hash-verified

132
133// NewConfig create new config
134func NewConfig() *Config {
135 return &Config{
136 App: NewAppNode(),
137 Server: NewServerNode(),
138 Session: NewSessionNode(),
139 ConfigSet: core.NewReadonlyMap(),
140 }
141}
142
143// IncludeConfigSet include ConfigSet file to Dotweb.Config.ConfigSet, can use ctx.ConfigSet to use your data
144// same key will cover oldest value

Callers 1

NewFunction · 0.92

Calls 4

NewReadonlyMapFunction · 0.92
NewAppNodeFunction · 0.85
NewServerNodeFunction · 0.85
NewSessionNodeFunction · 0.85

Tested by

no test coverage detected