Documentation ¶
Index ¶
- type Delegate
- type Message
- type Service
- func (m *Service) FindHandler(itopic string) (delegate Delegate, exists bool)
- func (m *Service) Loop()
- func (m *Service) Register(r string) error
- func (m *Service) RegisterAndSubscribe(register []string, subscribe []string)
- func (m *Service) RegisterHandler(topic string, delegate Delegate)
- func (m *Service) Subscribe(r string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Name string Logger *logpkg.Logger PubsubRegister []string PubsubSubscribe []string Pubsub *pubsub.Context Handlers map[string]Delegate CatchHandler Delegate ProcessMessages chan *Message }
Service is a convenience setup to implement a micro-service
func (*Service) FindHandler ¶
func (*Service) RegisterAndSubscribe ¶
func (*Service) RegisterHandler ¶
Click to show internal directories.
Click to hide internal directories.