event

package
v0.0.0-...-16fb52e Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

func NewConsumer

func NewConsumer(conn *amqp.Connection) (Consumer, error)

func (*Consumer) Listen

func (consumer *Consumer) Listen(topics []string) error

type Emitter

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

func NewEventEmitter

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

func (*Emitter) Push

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

type Payload

type Payload struct {
	Name string `json:"name"`
	Data string `json:"data"`
}

Jump to

Keyboard shortcuts

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