queue

package
v1.9.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQ

type RabbitMQ struct {
	// contains filtered or unexported fields
}

func NewRabbitMQ

func NewRabbitMQ(url, queueName string) *RabbitMQ

func (*RabbitMQ) Consume

func (r *RabbitMQ) Consume(ctx context.Context, consumerName string, prefetch int) (<-chan amqp.Delivery, func() error, error)

func (*RabbitMQ) PublishJSON

func (r *RabbitMQ) PublishJSON(ctx context.Context, body any) error

Jump to

Keyboard shortcuts

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