Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMQPConfig ¶
type Bus ¶
type Bus interface {
// Subscribe to the specified topic.
Subscribe(topic string, cb func(data interface{}), options *QueueOptions) (func(), error)
// Notify notifies the topic with the optional data
Notify(topic string, data interface{}) error
// DeleteQueue deletes a queue
DeleteQueue(id string) error
}
Bus is an interface used for pub-sub like interactions
func NewRabbitBus ¶
func NewRabbitBus(cfg *RabbitMQConfig) (Bus, error)
type QueueOptions ¶
type RabbitMQConfig ¶
Click to show internal directories.
Click to hide internal directories.