amqp10

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amqp10Consumer

type Amqp10Consumer struct {
	Id         int
	Connection *amqp.Conn
	Session    *amqp.Session
	Receiver   *amqp.Receiver
	Terminus   string
	Config     config.Config
	// contains filtered or unexported fields
}

func NewConsumer

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

func (*Amqp10Consumer) Connect

func (c *Amqp10Consumer) Connect()

func (*Amqp10Consumer) CreateReceiver

func (c *Amqp10Consumer) CreateReceiver(ctx context.Context)

func (*Amqp10Consumer) Start

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

func (*Amqp10Consumer) Stop

func (c *Amqp10Consumer) Stop(reason string)

type Amqp10Publisher

type Amqp10Publisher struct {
	Id         int
	Connection *amqp.Conn
	Session    *amqp.Session
	Sender     *amqp.Sender
	Terminus   string
	Config     config.Config
	// contains filtered or unexported fields
}

func NewPublisher

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

func (*Amqp10Publisher) Connect

func (p *Amqp10Publisher) Connect()

func (*Amqp10Publisher) CreateSender

func (p *Amqp10Publisher) CreateSender()

func (*Amqp10Publisher) SendAsync added in v0.26.0

func (p *Amqp10Publisher) SendAsync() error

func (*Amqp10Publisher) SendSync added in v0.26.0

func (p *Amqp10Publisher) SendSync() error

func (*Amqp10Publisher) Start

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

func (*Amqp10Publisher) StartPublishing

func (p *Amqp10Publisher) StartPublishing() string

func (*Amqp10Publisher) Stop

func (p *Amqp10Publisher) Stop(reason string)

Jump to

Keyboard shortcuts

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