Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is an instance of a message bus. This should to instantiated via the Initialize function.
func Initialize ¶
Initialize establishes a connection with the underlaying message bus. Once a connection is established, the function then verifies or creates a queue with the specified name. If the supplied direction is DirectionReceiveOnly then the API will immediately begin receiving messages from the queue.
func (*API) Inspect ¶
func (a *API) Inspect() (*messagebustypes.QueueInfo, error)
Inspect returns information about the number of messages and consumers associated with the queue.
type Acknowledger ¶
type Acknowledger struct {
// contains filtered or unexported fields
}
Acknowledger provides capabilities for ack, nack, or reject a message that has been received.
func NewAcknowledger ¶
func NewAcknowledger(channel *amqp.Channel, tag uint64) *Acknowledger
NewAcknowledger returns an instance of an acknowledger associated with a specific message channel and message tag.
func (*Acknowledger) Ack ¶
func (a *Acknowledger) Ack() error
Ack acknowledges that a message has been received.
func (*Acknowledger) Nack ¶
func (a *Acknowledger) Nack(requeue bool) error
Nack negatively acknowledges that a message has been received.