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

Function Get

framework/module/modules/modules.go:90–95  ·  view source on GitHub ↗

Get returns module from global registry. This function does not return endpoint-type modules, use GetEndpoint for that. Nil is returned if no module with specified name is registered.

(name string)

Source from the content-addressed store, hash-verified

88// that.
89// Nil is returned if no module with specified name is registered.
90func Get(name string) FuncNewModule {
91 modulesLock.RLock()
92 defer modulesLock.RUnlock()
93
94 return modules[name]
95}
96
97// GetEndpoint returns an endpoint module from global registry.
98//

Callers 2

RegisterModulesFunction · 0.92
createInlineModuleFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected