Documentation
¶
Index ¶
- type Service
- func (s *Service) BrokerOption(o ...broker.Option)
- func (s *Service) ClientOption(o ...client.Option)
- func (s *Service) CloseExit()
- func (s *Service) Init()
- func (s *Service) Run()
- func (s *Service) SelectorOption(o ...selector.Option)
- func (s *Service) ServerOption(o ...server.Option)
- func (s *Service) Start() error
- func (s *Service) Stop() error
- func (s *Service) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Broker broker.Broker
Client client.Client
Server server.Server
Registry registry.Registry
Selector selector.Selector
Transport transport.Transport
// Register loop interval
RegisterInterval time.Duration
// Other options for implementations of the interface
// can be stored in a context
Context context.Context
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) BrokerOption ¶
func (s *Service) RegistryOption(o ...registry.Option) {
s.registryOpts = append(s.registryOpts, o...)
}
func (s *Service) TransportOption(o ...transport.Option) {
s.transportOpts = append(s.transportOpts, o...)
}
func (*Service) ClientOption ¶
func (*Service) SelectorOption ¶
func (*Service) ServerOption ¶
Click to show internal directories.
Click to hide internal directories.