events

package
v0.0.0-...-04ccc7c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: AGPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	Channel  *amqp.Channel
	Exchange string
	core.Serializer
}

func NewEventsBroker

func NewEventsBroker(config config.ConnectionConfig, exchange string, serializer core.Serializer) *Broker

func (*Broker) Consume

func (b *Broker) Consume(
	queueName,
	routingKey string,
	handler func(d amqp.Delivery) bool,
	concurrency int) error

func (*Broker) Emmit

func (b *Broker) Emmit(routingKey string, msg interface{}) error

Jump to

Keyboard shortcuts

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