queue

package
v0.0.0-...-9058691 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailOnError

func FailOnError(err error, msg string)

func RabbitMQAdapter

func RabbitMQAdapter(ctx context.Context, queueName string, body []byte) (<-chan IDelivery, error)

Types

type IConsumer

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

func (*IConsumer) Consumer

func (c *IConsumer) Consumer(ctx context.Context, ch *amqp.Channel, queueName string) (<-chan IDelivery, error)

type IDelivery

type IDelivery struct {
	Delivery amqp.Delivery
	Ctx      context.Context
}

type IPublisher

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

func (*IPublisher) Publish

func (p *IPublisher) Publish(ctx context.Context, ch *amqp.Channel, queueName string, body []byte) error

Directories

Path Synopsis
rmq

Jump to

Keyboard shortcuts

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