event

package
v1.1.3-jwt-1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 19 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 ActiveMQEventDispatcher

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

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

func NewActiveMQEventDispatcher

func NewActiveMQEventDispatcher(logger *zerolog.Logger) (*ActiveMQEventDispatcher, error)

NewActiveMQEventDispatcher create and returns a new ActiveMQEventDispatcher

func (*ActiveMQEventDispatcher) DispatchEvent

func (eventDispatcher *ActiveMQEventDispatcher) DispatchEvent(token string, correlationID string, topic string, payload interface{})

DispatchEvent dispatches events to the message queue

type Dispatcher added in v1.0.0

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

Dispatcher interface must be implemented by Queue

func NewEventDispatcher

func NewEventDispatcher(appConfig *config.Config, logger *zerolog.Logger) (Dispatcher, error)

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, correlationID string, topic string, payload interface{})

DispatchEvent dispatches events to the message queue

type SQSEventDispatcher

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

SQSEventDispatcher is an event dispatcher that sends event to the SQS

func NewSQSEventDispatcher

func NewSQSEventDispatcher(logger *zerolog.Logger) (*SQSEventDispatcher, error)

NewSQSEventDispatcher create and returns a new SQSEventDispatcher

func (*SQSEventDispatcher) DispatchEvent

func (eventDispatcher *SQSEventDispatcher) DispatchEvent(token string, correlationID 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