event

package
v1.1.2-prom-1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventQWriter added in v1.0.0

func NewEventQWriter(eventDispatcher Dispatcher) io.Writer

NewEventQWriter creates new event queue writer

Types

type Dispatcher added in v1.0.0

type Dispatcher interface {
	DispatchEvent(token string, corelationID string, topic string, payload interface{})
}

Dispatcher interface must be implemented by Queue

type RabbitMQEventDispatcher

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

RabbitMQEventDispatcher is an event dispatcher that sends event to the RabbitMQ Exchange

func NewRabbitMQEventDispatcher

func NewRabbitMQEventDispatcher(logger *zerolog.Logger) (*RabbitMQEventDispatcher, error)

NewRabbitMQEventDispatcher create and returns a new RabbitMQEventDispatcher

func (*RabbitMQEventDispatcher) DispatchEvent

func (eventDispatcher *RabbitMQEventDispatcher) DispatchEvent(token string, corelationID string, topic string, payload interface{})

DispatchEvent dispatches events to the message queue

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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