Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
// SetLogger set a logger that will log operations on broker controller
SetLogger(logger log.Interface)
// Publish a message to the broker
Publish(ctx context.Context, channel string, mw Message) error
// Subscribe to messages from the broker
Subscribe(ctx context.Context, channel string) (msgs chan Message, stop chan interface{}, err error)
// SetQueueName sets the name of the queue that will be used by the broker
SetQueueName(name string)
}
Controller represents the functions that should be implemented to connect the broker to the application or the client
Click to show internal directories.
Click to hide internal directories.