amqp

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQ

type MQ struct {
	Exchange string
	Channel  *amqp.Channel
}

MQ denotes a wrapper structure around amqp.Exchange and amqp.Channel

func NewMQ

func NewMQ(url string, exchange string) *MQ

func (*MQ) Close

func (m *MQ) Close()

func (*MQ) IsValid

func (m *MQ) IsValid() bool

func (*MQ) Publish

func (m *MQ) Publish(payload []byte) error

func (*MQ) Receive

func (m *MQ) Receive() (<-chan amqp.Delivery, error)

Jump to

Keyboard shortcuts

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