MCPcopy Index your code
hub / github.com/foxcpp/maddy / New

Function New

framework/container/container.go:60–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func New() *C {
61 rootLog := log.DefaultLogger.Sublogger("")
62 return &C{
63 DefaultLogger: rootLog,
64 Modules: NewRegistry(rootLog.Sublogger("registry")),
65 Lifetime: NewLifetime(rootLog.Sublogger("lifetime")),
66 }
67}
68
69// Global is the default instance while refactoring is in progress.
70var Global *C

Callers 11

moduleConfigureFunction · 0.92
TestAuth_AuthPlainFunction · 0.92
testEndpointFunction · 0.92
getCfgBlockModuleFunction · 0.92
TestFileReloadFunction · 0.92
TestFileReload_BrokenFunction · 0.92
TestFileReload_RemovedFunction · 0.92
TestSQLFunction · 0.92
testReplaceAddrFunction · 0.92
newTestModifierFunction · 0.92
testCheckFunction · 0.92

Calls 3

NewRegistryFunction · 0.85
NewLifetimeFunction · 0.85
SubloggerMethod · 0.80

Tested by 9

TestAuth_AuthPlainFunction · 0.74
testEndpointFunction · 0.74
TestFileReloadFunction · 0.74
TestFileReload_BrokenFunction · 0.74
TestFileReload_RemovedFunction · 0.74
TestSQLFunction · 0.74
testReplaceAddrFunction · 0.74
newTestModifierFunction · 0.74
testCheckFunction · 0.74