Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Broker ¶
type Broker interface { Publish(topic string, msg interface{}) Subscribe(topic string, handler Handler) }
var (
Default Broker
)
func NewLocalBroker ¶
func NewLocalBroker() Broker
type Handler ¶
type Handler func(Publication)
type Publication ¶
type Publication interface { Topic() string Message() interface{} }
Click to show internal directories.
Click to hide internal directories.