brokers

package
v4.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAmqp

func NewAmqp(publisher *amqp.Publisher, consumer *amqp.Subscriber) messengers.Broker

func NewKafka

func NewKafka(publisher *kafka.Publisher, consumer *kafka.Subscriber) messengers.Broker

Types

type Amqp

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

func (*Amqp) Consume

func (b *Amqp) Consume(queueName string) (<-chan *message.Message, error)

func (*Amqp) Publish

func (b *Amqp) Publish(queueName string, payload message.Payload) error

type Kafka

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

func (*Kafka) Consume

func (b *Kafka) Consume(queueName string) (<-chan *message.Message, error)

func (*Kafka) Publish

func (b *Kafka) Publish(queueName string, payload message.Payload) error

Jump to

Keyboard shortcuts

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