queue

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIRIUS_RABBITMQ = "amqp://guest:guest@sirius-rabbitmq:5672/"
)

Variables

This section is empty.

Functions

func Listen

func Listen(qName string, messageProcessor MessageProcessor)

Listen listens to a RabbitMQ queue specified by qName and processes messages using the provided messageProcessor function.

func Send

func Send(qName string, message string) error

Send sends a message to a RabbitMQ queue specified by qName.

Types

type MessageProcessor

type MessageProcessor func(msg string)

MessageProcessor is a type for functions that can process messages.

Jump to

Keyboard shortcuts

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