broker

package
v0.0.0-...-766f130 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHost = "localhost"
	DefaultPort = 4242
)

Variables

View Source
var (
	ErrEmptyQueue = errors.New("The queue is empty.")
)

Functions

This section is empty.

Types

type Broker

type Broker struct {
	// contains filtered or unexported fields
}

func NewBroker

func NewBroker(host string, port int, showStatus bool) (Broker, error)

func (*Broker) Start

func (b *Broker) Start()

type Queue

type Queue struct {
	Name string
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(name string) Queue

func (*Queue) Pop

func (q *Queue) Pop() (*transport.Message, error)

func (*Queue) Push

func (q *Queue) Push(msg transport.Message) error

Jump to

Keyboard shortcuts

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