Documentation ¶
Index ¶
- Constants
- Variables
- type Acker
- type Config
- type Connector
- func (c *Connector) Close() (err error)
- func (c *Connector) Consume(queue, consumer string, cb func([]byte) Result)
- func (c *Connector) ConsumeAckLater(queue, consumer string, cb func([]byte, *Acker))
- func (c *Connector) ExchangeBind(destination, key, source string, noWait bool, args Table) error
- func (c *Connector) ExchangeDeclare(name, kind string, durable, autoDelete, internal, noWait bool, args Table) error
- func (c *Connector) ExchangeDeclarePassive(name, kind string, durable, autoDelete, internal, noWait bool, args Table) error
- func (c *Connector) ExchangeDelete(name string, ifUnused, noWait bool) error
- func (c *Connector) ExchangeUnbind(destination, key, source string, noWait bool, args Table) error
- func (c *Connector) Flow(active bool) error
- func (c *Connector) OnChannel(f func())
- func (c *Connector) OnChannelFail(f func() bool)
- func (c *Connector) OnConnect(f func())
- func (c *Connector) OnConnectionFail(f func() bool)
- func (c *Connector) OnReady(f func())
- func (c *Connector) Publish(exchange, key string, publishing Publishing) error
- func (c *Connector) Qos(prefetchCount, prefetchSize int, global bool) error
- func (c *Connector) QueueBind(name, key, exchange string, noWait bool, args Table) error
- func (c *Connector) QueueDeclare(name string, durable, autoDelete, exclusive, noWait bool, args Table) (Queue, error)
- func (c *Connector) QueueDeclarePassive(name string, durable, autoDelete, exclusive, noWait bool, args Table) (Queue, error)
- func (c *Connector) QueueDelete(name string, ifUnused, ifEmpty, noWait bool) (int, error)
- func (c *Connector) QueueInspect(name string) (Queue, error)
- func (c *Connector) QueuePurge(name string, noWait bool) (int, error)
- func (c *Connector) QueueUnbind(name, key, exchange string, args Table) error
- func (c *Connector) Recover(requeue bool) error
- func (c *Connector) Start() *Connector
- type Delivery
- type Logger
- type Publishing
- type Queue
- type Result
- type Table
Constants ¶
View Source
const ( ExchangeDirect = "direct" ExchangeFanout = "fanout" ExchangeTopic = "topic" ExchangeHeaders = "headers" )
Variables ¶
View Source
var ErrNoChannel = errors.New("no channel")
View Source
var ErrNoConnection = errors.New("not connected")
View Source
var ErrServerNAck = errors.New("not ack by server")
View Source
var ErrServerReturn = errors.New("returned by server")
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func (*Connector) ConsumeAckLater ¶ added in v1.1.0
TODO: remove duplicated code
func (*Connector) ExchangeBind ¶
func (*Connector) ExchangeDeclare ¶
func (*Connector) ExchangeDeclarePassive ¶
func (*Connector) ExchangeDelete ¶
func (*Connector) ExchangeUnbind ¶
func (*Connector) OnChannelFail ¶
func (*Connector) OnConnectionFail ¶
func (*Connector) Publish ¶
func (c *Connector) Publish(exchange, key string, publishing Publishing) error
func (*Connector) QueueDeclare ¶
func (*Connector) QueueDeclarePassive ¶
func (*Connector) QueueDelete ¶
func (*Connector) QueuePurge ¶
func (*Connector) QueueUnbind ¶
type Publishing ¶
type Publishing = amqp.Publishing
Click to show internal directories.
Click to hide internal directories.