queues

package
v0.0.0-...-483d5da Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

func NewPublisher

func NewPublisher(name string, conn RMQConnection) *Publisher

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, event models.Events) error

Publish publishes messages (events) to the exchange.

type RMQConnection

type RMQConnection interface {
	Channel() (*amqp.Channel, error)
}

Jump to

Keyboard shortcuts

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