message

package
v0.0.0-...-1d4a79d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpEventPublisher

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

AmqpEventPublisher is used as anchor for dispatch messsage method for real AMQP channels

func NewAmqpEventPublisher

func NewAmqpEventPublisher(url string) *AmqpEventPublisher

NewAmqpEventPublisher returns a new AMQP dispatcher wrapped around a single publishing channel.

func (*AmqpEventPublisher) Dispatch

func (q *AmqpEventPublisher) Dispatch(events []domain.Event) (err error)

DispatchMessage implementation of dispatch message interface method

type AmqpPublisher

type AmqpPublisher interface {
	Dispatch(events []domain.Event) (err error)
}

Jump to

Keyboard shortcuts

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