common

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMQP

type AMQP struct {
	URL string
	// contains filtered or unexported fields
}

func New

func New(url string) *AMQP

func (*AMQP) Close

func (a *AMQP) Close()

func (*AMQP) Connect

func (a *AMQP) Connect(ctx context.Context) error

func (*AMQP) Consume

func (a *AMQP) Consume(queue, exchange, routingKey string) (<-chan amqp.Delivery, error)

func (*AMQP) DeclareExchange

func (a *AMQP) DeclareExchange(name, kind string) error

DeclareExchange ensures exchange exists (durable)

func (*AMQP) PublishPersistent

func (a *AMQP) PublishPersistent(exchange, routingKey string, body []byte) error

Jump to

Keyboard shortcuts

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