event

package
v0.0.0-...-5d027ce Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func In

func In(str string, list ...string) bool

Types

type Consumer

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

func NewConsumer

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

func (*Consumer) Listen

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

type Payload

type Payload struct {
	Topic string         `json:"topic"`
	Data  map[string]any `json:"data"`
}

Jump to

Keyboard shortcuts

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