Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unsubscribe ¶
Types ¶
type Broker ¶
type Broker interface { Close() error Publish(topic string, payload []byte) error Subscribe(topic string) (<-chan []byte, error) Unsubscribe(topic string, sub <-chan []byte) error }
Broker is the message broker
var (
Default Broker = newBroker()
)
Click to show internal directories.
Click to hide internal directories.