Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDiscoveredServices ¶
func LoadDiscoveredServices(services ServicesInterface, env interface{})
LoadDiscoveredServices loads all registered services into the Services struct
func RegisterService ¶
func RegisterService(name string, locatorFunc ServiceLocatorFunc)
RegisterService registers a service with the global registry
Types ¶
type ServiceLocatorFunc ¶
type ServiceLocatorFunc func(env interface{}) interface{}
ServiceLocatorFunc is a function that creates a service locator
type ServiceRegistry ¶
type ServiceRegistry struct {
// contains filtered or unexported fields
}
ServiceRegistry holds registered services
type ServicesInterface ¶
type ServicesInterface interface {
SetService(name string, service interface{})
}
ServicesInterface defines the interface for the Services struct
Click to show internal directories.
Click to hide internal directories.