monitor

package
v1.1.183 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventInfo

type EventInfo struct {
	RawToken     string
	CorelationID string
	Name         string
	Payload      string
}

EventInfo represents the message received from queu

type EventMonitor

type EventMonitor interface {
	Start()
	Stop()
	// contains filtered or unexported methods
}

EventMonitor represents an interface used to monitor Events

func NewEventMonitor

func NewEventMonitor(logger *zerolog.Logger, eventsToMonitor []string, eventSignal chan *EventInfo) (EventMonitor, error)

NewEventMonitor creates a new eventMonitor that publishes received events to the specified channel

func NewEventMonitorForQueue added in v0.0.68

func NewEventMonitorForQueue(logger *zerolog.Logger, queueName string, eventsToMonitor []string, eventSignal chan *EventInfo) (EventMonitor, error)

NewEventMonitorForQueue creates a new eventMonitor that publishes received events from a named queue to the specified channel

Jump to

Keyboard shortcuts

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