messengers

package
v4.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL