Documentation
¶
Index ¶
- type Amqp
- type AmqpOptions
- type ConsumeOptions
- type DeclareOptions
- type Exchange
- type ExchangeBindOptions
- type ExchangeDeclareOptions
- type ExchangeOptions
- type ExchangeUnindOptions
- type ListenOptions
- type ListenerType
- type PublishOptions
- type Queue
- func (queue *Queue) Bind(options QueueBindOptions) error
- func (queue *Queue) Declare(options DeclareOptions) (amqpDriver.Queue, error)
- func (queue *Queue) Delete(name string) error
- func (queue *Queue) Inspect(name string) (amqpDriver.Queue, error)
- func (queue *Queue) Purge(name string, noWait bool) (int, error)
- func (queue *Queue) Unbind(options QueueUnindOptions) error
- type QueueBindOptions
- type QueueOptions
- type QueueUnindOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amqp ¶
type Amqp struct { Version string Connection *amqpDriver.Connection Queue *Queue Exchange *Exchange }
func (*Amqp) Listen ¶
func (amqp *Amqp) Listen(options ListenOptions) error
func (*Amqp) Publish ¶
func (amqp *Amqp) Publish(options PublishOptions) error
func (*Amqp) Start ¶
func (amqp *Amqp) Start(options AmqpOptions) error
type AmqpOptions ¶
type AmqpOptions struct {
ConnectionUrl string
}
type ConsumeOptions ¶
type DeclareOptions ¶
type Exchange ¶
type Exchange struct { Version string Connection *amqpDriver.Connection }
func (*Exchange) Bind ¶
func (exchange *Exchange) Bind(options ExchangeBindOptions) error
func (*Exchange) Declare ¶
func (exchange *Exchange) Declare(options ExchangeDeclareOptions) error
func (*Exchange) Unbind ¶
func (exchange *Exchange) Unbind(options ExchangeUnindOptions) error
type ExchangeBindOptions ¶
type ExchangeDeclareOptions ¶
type ExchangeOptions ¶
type ExchangeOptions struct {
ConnectionUrl string
}
type ExchangeUnindOptions ¶
type ListenOptions ¶
type ListenOptions struct { Listener ListenerType QueueName string Consumer string AutoAck bool Exclusive bool NoLocal bool NoWait bool Args amqpDriver.Table }
type ListenerType ¶
type PublishOptions ¶
type Queue ¶
type Queue struct { Version string Connection *amqpDriver.Connection }
func (*Queue) Bind ¶
func (queue *Queue) Bind(options QueueBindOptions) error
func (*Queue) Declare ¶
func (queue *Queue) Declare(options DeclareOptions) (amqpDriver.Queue, error)
func (*Queue) Unbind ¶
func (queue *Queue) Unbind(options QueueUnindOptions) error
type QueueBindOptions ¶
type QueueOptions ¶
type QueueOptions struct {
ConnectionUrl string
}
type QueueUnindOptions ¶
type QueueUnindOptions struct { QueueName string ExchangeName string RoutingKey string Args amqpDriver.Table }
Click to show internal directories.
Click to hide internal directories.