rabbitmq

package
v0.0.0-...-8b8aa28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQ

type RabbitMQ struct {
	Name string
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, url string) *RabbitMQ

func (*RabbitMQ) Bind

func (q *RabbitMQ) Bind(exchange string) error

func (*RabbitMQ) Close

func (q *RabbitMQ) Close() error

func (*RabbitMQ) Consume

func (q *RabbitMQ) Consume() (<-chan amqp.Delivery, error)

func (*RabbitMQ) Publish

func (q *RabbitMQ) Publish(exchange string, body interface{}) error

func (*RabbitMQ) Send

func (q *RabbitMQ) Send(queue string, body interface{}) error

Jump to

Keyboard shortcuts

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