amqp

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	Uri          string //amqp://guest:guest@localhost:5672/
	ExchangeName string // "test-exchange"
	ExchangeType string // "direct", "Exchange type - direct|fanout|topic|x-custom"
	QueueName    string //("test-key", "AMQP routing key"
	BindingKey   string
	ReceiveFunc  func(data []byte)
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(uri, exchange, exchangeType, queueName, key, ctag string) (*Consumer, error)

func (*Consumer) Shutdown

func (c *Consumer) Shutdown() error

type Producer

type Producer struct {
	Uri          string //amqp://guest:guest@localhost:5672/
	ExchangeName string // "test-exchange"
	ExchangeType string // "direct", "Exchange type - direct|fanout|topic|x-custom"
	RoutingKey   string //("test-key", "AMQP routing key"
	Reliable     bool
	SuccessFunc  func(confirms *amqp.Confirmation) // "Wait for the publisher confirmation before exiting"
	FailFunc     func(confirms *amqp.Confirmation)
	// contains filtered or unexported fields
}

func NewProducer

func NewProducer(uri, exchange, exchangeType, routingKey string, reliable bool) (*Producer, error)

func (*Producer) Close

func (this *Producer) Close() error

func (*Producer) Send

func (this *Producer) Send(data []byte) error

Jump to

Keyboard shortcuts

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