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

Function GetEndpoint

framework/module/modules/modules.go:100–105  ·  view source on GitHub ↗

GetEndpoint returns an endpoint module from global registry. Nil is returned if no module with specified name is registered.

(name string)

Source from the content-addressed store, hash-verified

98//
99// Nil is returned if no module with specified name is registered.
100func GetEndpoint(name string) FuncNewEndpoint {
101 modulesLock.RLock()
102 defer modulesLock.RUnlock()
103
104 return endpoints[name]
105}
106
107// RegisterEndpoint registers an endpoint module.
108//

Callers 1

RegisterModulesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected