event

package
v0.0.0-...-9fefbdc Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

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

Emitter for publishing AMQP events

func NewEventEmitter

func NewEventEmitter(conn *amqp.Connection) (Emitter, error)

NewEventEmitter returns a new event.Emitter object ensuring that the object is initialised, without error

func (*Emitter) Push

func (e *Emitter) Push(event string, severity string) error

Push (Publish) a specified message to the AMQP exchange

Jump to

Keyboard shortcuts

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