MCPcopy Create free account
hub / github.com/foxcpp/maddy / GroupFromNode

Function GroupFromNode

framework/config/module/modconfig.go:153–158  ·  view source on GitHub ↗

GroupFromNode provides a special kind of ModuleFromNode syntax that allows to omit the module name when defining inine configuration. If it is not present, name in defaultModule is used.

(defaultModule string, args []string, inlineCfg config.Node, globals map[string]interface{}, moduleIface interface{})

Source from the content-addressed store, hash-verified

151// to omit the module name when defining inine configuration. If it is not
152// present, name in defaultModule is used.
153func GroupFromNode(defaultModule string, args []string, inlineCfg config.Node, globals map[string]interface{}, moduleIface interface{}) error {
154 if len(args) == 0 {
155 args = append(args, defaultModule)
156 }
157 return ModuleFromNode("", args, inlineCfg, globals, moduleIface)
158}

Callers

nothing calls this directly

Calls 1

ModuleFromNodeFunction · 0.85

Tested by

no test coverage detected