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
}
Consumer provides a container for `Consumer` configuration and run time values
func NewConsumer ¶
NewConsumer will, given the URI of a rabbitMQ instance and a key with which to consume from, generate a Consumer for a node to receive messages germane to their operation
type Node ¶
type Node struct { Consumer *Consumer Producer *Producer TaskManager taskmanager.TaskManager }
Node creates a Node. Nodes are the powerhouse of the tool; they receive messages from RabbitMQ (*Consumer), push messages into RabbitMQ (*Producer) and handle what those individual messages are (TaskManager)
func (*Node) ConsumerLoop ¶
ConsumerLoop connects to RabbitMQ based on a *Consumer and route messages
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer configuration for sending messages via rabbit MQ
func NewProducer ¶
NewProducer creates configuration container *Producer