rmqproducer

package
v0.0.0-...-a305310 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection() (*rabbitmq.Conn, error)

Init a new RabbitMQ connection with the RabbitMQ host.

func NewPublisher

func NewPublisher(conn *rabbitmq.Conn) (*rabbitmq.Publisher, error)

Create a new publisher that publishes to the "swipes" exchange via "fanout" method.

Types

type Publisher

type Publisher interface {
	Publish(data []byte, routingKeys []string, optionFuncs ...func(*rabbitmq.PublishOptions)) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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