Documentation
¶
Index ¶
- Constants
- type Binding
- type Declarations
- type DeclarationsOption
- func WithBinding(exchangeName string, queueName string, routingKey string) DeclarationsOption
- func WithDirectExchange(name string) DeclarationsOption
- func WithFanoutExchange(name string) DeclarationsOption
- func WithQueue(name string, opts ...QueueOption) DeclarationsOption
- func WithTopicExchange(name string) DeclarationsOption
- type Exchange
- type Queue
- type QueueOption
Constants ¶
View Source
const ( DLXName = "default-dead-letter" DLQSuffix = "DLQ" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Declarations ¶
func Compile ¶
func Compile(cfg Declarations) Declarations
func New ¶
func New(opts ...DeclarationsOption) Declarations
type DeclarationsOption ¶
type DeclarationsOption func(d *Declarations)
func WithBinding ¶
func WithBinding(exchangeName string, queueName string, routingKey string) DeclarationsOption
func WithDirectExchange ¶
func WithDirectExchange(name string) DeclarationsOption
func WithFanoutExchange ¶
func WithFanoutExchange(name string) DeclarationsOption
func WithQueue ¶
func WithQueue(name string, opts ...QueueOption) DeclarationsOption
func WithTopicExchange ¶
func WithTopicExchange(name string) DeclarationsOption
type Queue ¶
type Queue struct { Name string DLQ bool Durable bool AutoDelete bool RetryPolicy *retry.Policy Args amqp.Table }
func NewQueue ¶
func NewQueue(name string, opts ...QueueOption) *Queue
type QueueOption ¶
type QueueOption func(q *Queue)
func WithAutoDelete ¶
func WithAutoDelete(value bool) QueueOption
func WithDLQ ¶
func WithDLQ(value bool) QueueOption
func WithDurable ¶
func WithDurable(value bool) QueueOption
func WithQueueArg ¶
func WithQueueArg(key string, value any) QueueOption
func WithRetryPolicy ¶
func WithRetryPolicy(policy retry.Policy) QueueOption
Click to show internal directories.
Click to hide internal directories.