Documentation ¶
Index ¶
- type Channel
- func (c *Channel) CancelConsumer(consumerTag string, noWait bool) error
- func (c *Channel) Close() error
- func (c *Channel) Consume(queue, consumerTag string, autoAck, exclusive, noLocal, noWait bool, ...) error
- func (c *Channel) ExchangeDeclare(name string, kind string, durable bool, autoDelete bool, internal bool, ...) error
- func (c *Channel) ExchangeDeclareNoWait(name string, kind string, durable bool, autoDelete bool, internal bool, ...) error
- func (c *Channel) Publish(exchange, key string, mandatory, immediate bool, msg amqp.Publishing) error
- func (c *Channel) PublishWithContext(ctx context.Context, exchange, key string, mandatory, immediate bool, ...) error
- func (c *Channel) Qos(prefetchCount, prefetchSize int, global bool) error
- func (c *Channel) QueueBind(name, key, exchange string, noWait bool, args amqp.Table) error
- func (c *Channel) QueueDeclare(name string, durable bool, autoDelete bool, exclusive bool, args amqp.Table) (amqp.Queue, error)
- func (c *Channel) QueueDeclareNoWait(name string, durable bool, autoDelete bool, exclusive bool, args amqp.Table) (amqp.Queue, error)
- type Connection
- type Consumer
- type RecordedBinding
- type RecordedConsumer
- type RecordedExchange
- type RecordedQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
func (*Channel) CancelConsumer ¶
func (*Channel) ExchangeDeclare ¶
func (*Channel) ExchangeDeclareNoWait ¶
func (*Channel) PublishWithContext ¶
func (*Channel) QueueDeclare ¶
type Connection ¶
type Connection struct { *amqp.Connection // contains filtered or unexported fields }
func Dial ¶
func Dial(url string) (*Connection, error)
func (*Connection) Channel ¶
func (c *Connection) Channel() (*Channel, error)
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) IsClosed ¶
func (c *Connection) IsClosed() bool
func (*Connection) SetLogger ¶
func (c *Connection) SetLogger(logger *slog.Logger)
type RecordedBinding ¶
type RecordedBinding struct { QueueName string ExchangeName string RoutingKey string Args amqp.Table }
func (*RecordedBinding) Equal ¶
func (rb *RecordedBinding) Equal(another *RecordedBinding) bool
type RecordedConsumer ¶
type RecordedExchange ¶
Click to show internal directories.
Click to hide internal directories.