Documentation ¶ Index ¶ type Broker type Messenger func New(debug bool, broker Broker) *Messenger func (m *Messenger) Consume(queueName string) (<-chan *message.Message, error) func (m *Messenger) Publish(queueName string, data []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Broker ¶ type Broker interface { Publish(queueName string, payload message.Payload) error Consume(queueName string) (<-chan *message.Message, error) } type Messenger ¶ type Messenger struct { // contains filtered or unexported fields } func New ¶ func New(debug bool, broker Broker) *Messenger func (*Messenger) Consume ¶ func (m *Messenger) Consume(queueName string) (<-chan *message.Message, error) func (*Messenger) Publish ¶ func (m *Messenger) Publish(queueName string, data []byte) error Source Files ¶ View all Source files messenger.go Directories ¶ Show internal Expand all Path Synopsis brokers Click to show internal directories. Click to hide internal directories.