broker

package
v0.0.0-...-16c77f9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	Close() error
	Consumer(queue string) (Consumer, error)
	Publisher(queue string) (Publisher, error)
}

Broker implements a high level interface that can provide Consumer or Publisher

type Consumer

type Consumer interface {
	Close() error
	Consume(out interface{}) error
	ConsumeAck(out interface{}) error
	ConsumeTimeout(out interface{}, timeout time.Duration) error
	Ack() error
	Nack() error
}

Consumer is used to consume messages from a queue

type Publisher

type Publisher interface {
	Close() error
	Publish(in interface{}) error
}

Publisher is used to push messages into a queue

Jump to

Keyboard shortcuts

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