rabbitmq

package
Version: v1.7.1-0...-29a0ac7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	Url        string
	Exchange   *Exchange
	Queue      *Queue
	BindingKey []string
	// contains filtered or unexported fields
}

func (*Consumer) Connect

func (c *Consumer) Connect() error

func (*Consumer) Consume

func (c *Consumer) Consume(cb ConsumerCallback) error

type ConsumerCallback

type ConsumerCallback func(*amqp.Delivery) error

type Exchange

type Exchange struct {
	Name         string
	ExchangeType string
	Durable      bool
	AutoDeleted  bool
	Internal     bool
	NoWait       bool
	Arguments    amqp.Table
}

type Publisher

type Publisher struct {
	Url      string
	Exchange *Exchange
	// contains filtered or unexported fields
}

func (*Publisher) Close

func (p *Publisher) Close()

func (*Publisher) Connect

func (p *Publisher) Connect() error

func (*Publisher) Publish

func (p *Publisher) Publish(routingKey string, msgString []byte)

func (*Publisher) Reconnect

func (p *Publisher) Reconnect() error

type Queue

type Queue struct {
	Name       string
	Durable    bool
	AutoDelete bool
	Exclusive  bool
	NoWait     bool
	Arguments  amqp.Table
}

Jump to

Keyboard shortcuts

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