rabbit

package
v0.0.0-...-6f9a9ad Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: GPL-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 RabbitClient

type RabbitClient interface {
	Publish(ctx context.Context, exchangeName string, routingKey string, message interface{}) error
	PublishBytes(ctx context.Context, exchangeName string, routingKey string, message []byte) error
	Consume(ctx context.Context, queueName string) (<-chan amqp.Delivery, error)
	Finish()
}

func InitRabbitClient

func InitRabbitClient(connectionString string) (RabbitClient, error)

Jump to

Keyboard shortcuts

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