Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageBroker ¶
type MessageBroker interface { // Publish publishes message to the topic Publish(topic string, message ...Message) error // Subscribe subscribes to a chanel mesagges of topic Subscribe(topic string) (chan Message, error) // Close end MessageBroker Close() }
MessageBroker is the interface to publish, consume messages
Click to show internal directories.
Click to hide internal directories.