Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Scope apistructs.Scope `json:"scope"`
Type string `json:"type"`
Payload interface{} `json:"payload"`
}
type Protocol ¶
type Protocol struct {
Scope apistructs.Scope `json:"scope"`
Command Command `json:"command"`
}
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(ec chan *Event) (*Subscriber, error)
func (*Subscriber) Start ¶
func (s *Subscriber) Start()
func (*Subscriber) Stop ¶
func (s *Subscriber) Stop()
Click to show internal directories.
Click to hide internal directories.