rabbitmq

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProducer

func NewProducer(ctx context.Context, msg, amqpURI, exchangeName, exchangeType, queueName, routeName, tag string) (err error)

func Test

func Test()

Types

type ConsumeMsg

type ConsumeMsg interface {
	// Do
	Do(d amqp.Delivery) error
}

ConsumeMsg

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

Consumer

func NewConsumer

func NewConsumer(amqpURI, queueName, tag string, consumeMsg ConsumeMsg) (*Consumer, error)

NewConsumer

func (*Consumer) Shutdown

func (c *Consumer) Shutdown()

type TestConsumer

type TestConsumer struct{}

func (*TestConsumer) Do

Jump to

Keyboard shortcuts

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