Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node interface { node.Node Services() *ServiceRegistry }
Node is an interface for proxy nodes
type RegisterServiceFunc ¶
RegisterServiceFunc is a function for registering a service
type Server ¶
Server is a base server
func (*Server) RegisterService ¶
func (s *Server) RegisterService(service RegisterServiceFunc)
RegisterService registers a service
func (*Server) Services ¶
func (s *Server) Services() *ServiceRegistry
Services returns the service registry
type ServiceRegistry ¶
type ServiceRegistry struct {
// contains filtered or unexported fields
}
ServiceRegistry is a registry of services
func NewServiceRegistry ¶
func NewServiceRegistry() *ServiceRegistry
NewServiceRegistry creates a new service registry
func (*ServiceRegistry) GetServices ¶
func (r *ServiceRegistry) GetServices() []RegisterServiceFunc
GetServices returns the registered service factory functions
func (*ServiceRegistry) RegisterService ¶
func (r *ServiceRegistry) RegisterService(service RegisterServiceFunc)
RegisterService registers a service factory function
Click to show internal directories.
Click to hide internal directories.