amqp091

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amqp091Consumer

type Amqp091Consumer struct {
	Id         int
	Connection *amqp091.Connection
	Channel    *amqp091.Channel
	Terminus   string
	Messages   <-chan amqp091.Delivery
	Config     config.Config
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(ctx context.Context, cfg config.Config, id int) *Amqp091Consumer

func (*Amqp091Consumer) Connect

func (c *Amqp091Consumer) Connect()

func (*Amqp091Consumer) Start

func (c *Amqp091Consumer) Start(consumerReady chan bool)

func (*Amqp091Consumer) Stop

func (c *Amqp091Consumer) Stop(reason string)

func (*Amqp091Consumer) Subscribe

func (c *Amqp091Consumer) Subscribe()

type Amqp091Publisher

type Amqp091Publisher struct {
	Id         int
	Connection *amqp091.Connection
	Channel    *amqp091.Channel

	Config config.Config
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(ctx context.Context, cfg config.Config, id int) *Amqp091Publisher

func (*Amqp091Publisher) Connect

func (p *Amqp091Publisher) Connect()

func (*Amqp091Publisher) SendAsync

func (p *Amqp091Publisher) SendAsync(n uint64) error

func (*Amqp091Publisher) Start

func (p *Amqp091Publisher) Start(publisherReady chan bool, startPublishing chan bool)

func (*Amqp091Publisher) StartPublishing

func (p *Amqp091Publisher) StartPublishing() string

func (*Amqp091Publisher) Stop

func (p *Amqp091Publisher) Stop(reason string)

Jump to

Keyboard shortcuts

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