rabbitmq

package
v0.0.0-...-3b776c6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DelayExchange = "gq-delay"
View Source
const RabbitMQConnectionUnavailable = "RabbitMQ host connection unavailable."
View Source
const StandardExchange = "gq-immediate"
View Source
const UnsupportedCallErr = "Call unimplemented or not supported by RabbitMQ"

Variables

This section is empty.

Functions

func AckFunc

func AckFunc(m amqp.Delivery) func() error

create the AckFunc on a copy of the Delivery

func ConnString

func ConnString(params *gq.ConnParam) string

func Queue

func Queue(c *Channel, name string) (q *amqp.Queue, err error)

Types

type Channel

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

func (*Channel) Channel

func (c *Channel) Channel() (ch *amqp.Channel, err error)

func (*Channel) Close

func (c *Channel) Close() (err error)

func (*Channel) Consume

func (c *Channel) Consume(queue string, noAck bool) (out chan gq.Message, err error)

func (*Channel) Count

func (c *Channel) Count(queue string) (count int, err error)

func (*Channel) Delete

func (c *Channel) Delete(queue string, identifier string) (err error)

func (*Channel) GetOne

func (c *Channel) GetOne(queue string, noAck bool) (msg gq.Message, err error)

func (*Channel) Post

func (c *Channel) Post(queue string, msg gq.Message, delay time.Duration) (err error)

Jump to

Keyboard shortcuts

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