Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionConfig ¶
type ConnectionConfig struct { Host string User string Password string VirtualHost string Port int }
func (*ConnectionConfig) Raw ¶
func (c *ConnectionConfig) Raw() string
func (*ConnectionConfig) String ¶
func (c *ConnectionConfig) String() string
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is a RabbtiMQ consumer and publisher. It will setup an AMQP channel to consume messages from an exchange through a queue and will withstand disconnects on connection to RabbtiMQ.
Reconnection is implemented as a chan *connection that is consumed in the Start method. If connection loss is detected the reconnector Go routine will setup a new connection and push it on to the channel thus keeping Start blocking.
func NewWorker ¶
NewWorker allocates and returns a Worker consuming and publising messages on an AMQP exchange.
Click to show internal directories.
Click to hide internal directories.