Documentation ¶
Index ¶
- func ConvertDeliveryToPublishing(message amqp.Delivery) amqp.Publishing
- type Client
- func (a *Client) Ack(message amqp.Delivery)
- func (a *Client) ClientName() string
- func (a *Client) Close()
- func (a *Client) Consumer(queueName, topic, exchangeName string, retryDelay time.Duration) (string, error)
- func (a *Client) Enabled() bool
- func (a *Client) Listen(queue string) (<-chan amqp.Delivery, error)
- func (a *Client) ListenReconnect() <-chan bool
- func (a *Client) Ping() error
- func (a *Client) Publish(payload amqp.Publishing, exchange string) error
- func (a *Client) Publisher(exchangeName, exchangeType string, args amqp.Table) error
- func (a *Client) Reject(message amqp.Delivery, requeue bool)
- func (a *Client) StopChannel()
- func (a *Client) Vhost() string
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDeliveryToPublishing ¶
func ConvertDeliveryToPublishing(message amqp.Delivery) amqp.Publishing
ConvertDeliveryToPublishing convert a delivery to a publishing, for requeuing
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps all object required for AMQP usage
func (*Client) Consumer ¶
func (a *Client) Consumer(queueName, topic, exchangeName string, retryDelay time.Duration) (string, error)
Consumer configures client for consumming from given queue, bind to given exchange, and return delayed Exchange name to publish
func (*Client) ListenReconnect ¶
ListenReconnect creates a chan notifier with a boolean when doing reconnection
func (*Client) Publish ¶
func (a *Client) Publish(payload amqp.Publishing, exchange string) error
Publish sends payload to the underlying exchange
Click to show internal directories.
Click to hide internal directories.