Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option options' of registing service functions
func RetryTimes ¶
type ReadOption ¶
type ReadOption func(o *ReadOptions)
func ReadService ¶
func ReadService(s *service.Service) ReadOption
ReadService sets the service to read from the table
type ReadOptions ¶
type Router ¶
type Router interface { service.LifeCycle // // Caller handle serving messages // type Caller interface { // Remote for handler TODO GetServiceNodes(...ReadOption) ([]*node.Node, error) // []*node.Node || component // // Registry router registry // type Registry interface { RegisterRegistry(string, registry.Registry) error DeregisterRegistry(string) error RegisterService(string, *service.Service, ...registry.RegisterOption) error DeregisterService(string, *service.Service, ...registry.DeregisterOption) error WatchService(string, ...registry.WatchOption) error }
Router router
Click to show internal directories.
Click to hide internal directories.