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) PublishWithContext(ctx context.Context, 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 ( Transient uint8 = amqp.Transient Persistent uint8 = amqp.Persistent )
DeliveryMode. Transient means higher throughput but messages will not be restored on broker restart. The delivery mode of publishings is unrelated to the durability of the queues they reside on. Transient messages will not be restored to durable queues, persistent messages will be restored to durable queues and lost on non-durable queues during server restart.
This remains typed as uint8 to match Publishing.DeliveryMode. Other delivery modes specific to custom queue implementations are not enumerated here.
View Source
const ( ExchangeDirect = "direct" ExchangeFanout = "fanout" ExchangeTopic = "topic" ExchangeHeaders = "headers" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func (*Connector) ConsumeAckLater ¶
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) PublishWithContext ¶ added in v1.2.2
func (*Connector) QueueDeclare ¶
func (*Connector) QueueDeclarePassive ¶
func (*Connector) QueueDelete ¶
func (*Connector) QueuePurge ¶
func (*Connector) QueueUnbind ¶
type Publishing ¶
type Publishing = amqp.Publishing
Source Files ¶
Click to show internal directories.
Click to hide internal directories.