monitor

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: MIT Imports: 6 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
	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 *logrus.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 *logrus.Logger, queueName string, eventsToMonitor []string, eventSignal chan *EventInfo) (EventMonitor, error)

Jump to

Keyboard shortcuts

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