Documentation
¶
Index ¶
- type Amqp
- type AmqpOptions
- type ConsumeOptions
- type DeclareOptions
- type EchangeDeclareOptions
- type ExchangeBindOptions
- type ExchangeOptions
- type ExchangeUnindOptions
- type Exchanges
- type ListenOptions
- type ListenerType
- type PublishOptions
- type QueueBindOptions
- type QueueOptions
- type QueueUnindOptions
- type Queues
- func (queues *Queues) Bind(options QueueBindOptions) error
- func (queues *Queues) Declare(options DeclareOptions) (amqpDriver.Queue, error)
- func (queues *Queues) Delete(name string) error
- func (queues *Queues) Inspect(name string) (amqpDriver.Queue, error)
- func (queues *Queues) Purge(name string, noWait bool) (int, error)
- func (queues *Queues) Unbind(options QueueUnindOptions) error
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 Queues *Queues Exchanges *Exchanges }
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 EchangeDeclareOptions ¶
type ExchangeBindOptions ¶
type ExchangeOptions ¶
type ExchangeOptions struct {
ConnectionUrl string
}
type ExchangeUnindOptions ¶
type Exchanges ¶
type Exchanges struct { Version string Connection *amqpDriver.Connection }
func (*Exchanges) Bind ¶
func (exchanges *Exchanges) Bind(options ExchangeBindOptions) error
func (*Exchanges) Declare ¶
func (exchanges *Exchanges) Declare(options EchangeDeclareOptions) error
func (*Exchanges) Unbind ¶
func (exchanges *Exchanges) Unbind(options ExchangeUnindOptions) error
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 QueueBindOptions ¶
type QueueOptions ¶
type QueueOptions struct {
ConnectionUrl string
}
type QueueUnindOptions ¶
type QueueUnindOptions struct { QueueName string ExchangeName string RoutingKey string Args amqpDriver.Table }
type Queues ¶
type Queues struct { Version string Connection *amqpDriver.Connection }
func (*Queues) Bind ¶
func (queues *Queues) Bind(options QueueBindOptions) error
func (*Queues) Declare ¶
func (queues *Queues) Declare(options DeclareOptions) (amqpDriver.Queue, error)
func (*Queues) Unbind ¶
func (queues *Queues) Unbind(options QueueUnindOptions) error
Click to show internal directories.
Click to hide internal directories.