Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
The Bus allows publish-subscribe-style communication between components
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message is send on the bus to all subscribed listeners
func NewMessage ¶
type MessageListener ¶
MessageListener is the signature of functions that can handle an EventMessage.
type Subscriber ¶
type Subscriber interface {
Subscribe(topic Topic, listener MessageListener) error
}
Click to show internal directories.
Click to hide internal directories.