queue

package
v0.0.0-...-7a62f64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Name        string
	RoutingKey  string
	Exchange    string
	Durable     bool
	AutoDelete  bool
	Exclusive   bool
	NoWait      bool
	QueueArgs   amqp.Table
	BindingArgs amqp.Table
}

func NewDefinition

func NewDefinition(name, routingKey, exchange string, opts ...QueueOpt) *Definition

func (Definition) CreateBindedQueue

func (q Definition) CreateBindedQueue(ctx context.Context, channel *amqp.Channel) (*amqp.Queue, error)

type QueueOpt

type QueueOpt func(*Definition)

func WithAutoDelete

func WithAutoDelete(autoDelete bool) QueueOpt

func WithBindingArgs

func WithBindingArgs(args amqp.Table) QueueOpt

func WithDurable

func WithDurable(durable bool) QueueOpt

func WithExclusive

func WithExclusive(ex bool) QueueOpt

func WithNoWait

func WithNoWait(noWait bool) QueueOpt

func WithQueueArgs

func WithQueueArgs(args amqp.Table) QueueOpt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL