Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher interface {
Close(Topic)
Publish(Topic, Event)
Shutdown()
Startup()
Subscribable
}
Publisher is an publisher of events that can be subscribed to
func NewPublisher ¶
func NewPublisher() Publisher
NewPublisher returns a new message event publisher
type Subscribable ¶
type Subscribable interface {
Subscribe(topic Topic, sub Subscriber) bool
Unsubscribe(sub Subscriber) bool
}
Subscribable is a stream that can be subscribed to
type Subscriber ¶
Subscriber is a subscriber that can receive events
Click to show internal directories.
Click to hide internal directories.