Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddService ¶
Types ¶
type Publisher ¶ added in v0.1.4
type Publisher struct { amqp.Publishing Exchange string Queue string Type string Data interface{} }
type Session ¶ added in v0.0.64
type Session struct {
// contains filtered or unexported fields
}
This exports a Session object that wraps this library. It automatically reconnects when the connection fails, and blocks all pushes until the connection succeeds. It also confirms every outgoing message, so none are lost. It doesn't automatically ack each message, but leaves that to the parent process, since it is usage-dependent.
Try running this in one terminal, and `rabbitmq-server` in another. Stop & restart RabbitMQ to see how the queue reacts.
func NewSession ¶ added in v0.0.64
func NewSession() *Session
New creates a new consumer state instance, and automatically attempts to connect to the server.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.