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.
Types ¶
type MessageProcessor ¶
type MessageProcessor func(msg string)
MessageProcessor is a type for functions that can process messages.
Click to show internal directories.
Click to hide internal directories.