Documentation
¶
Index ¶
- Constants
- func WithConsumerRoutingKeys(routingKeys ...string) func(c *Client)
- func WithExchangeName(exchangeName string) func(c *Client)
- func WithExchangeType(exchangeType string) func(c *Client)
- func WithHost(host string) func(c *Client)
- func WithPassword(password string) func(c *Client)
- func WithPort(port uint) func(c *Client)
- func WithQueueName(queueName string) func(c *Client)
- func WithUser(user string) func(c *Client)
- type Acknowledger
- type Client
- type ConsumerOpt
Constants ¶
View Source
const ( DefaultHost = "localhost" DefaultPort = 5672 DefaultUser = "guest" DefaultPassword = "guest" ManagementUIPort = 15672 ExchangeTypeDirect = "direct" ExchangeTypeTopic = "topic" ExchangeTypeFanout = "fanout" )
Variables ¶
This section is empty.
Functions ¶
func WithConsumerRoutingKeys ¶
func WithExchangeName ¶
func WithExchangeType ¶
func WithPassword ¶ added in v0.0.8
func WithQueueName ¶
Types ¶
type Acknowledger ¶ added in v0.0.5
type Acknowledger struct {
// contains filtered or unexported fields
}
func NewAcknowledger ¶ added in v0.0.5
func NewAcknowledger(delivery amqp091.Delivery) *Acknowledger
func (*Acknowledger) Ack ¶ added in v0.0.5
func (a *Acknowledger) Ack() error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...ConsumerOpt) (*Client, error)
type ConsumerOpt ¶
type ConsumerOpt func(consumer *Client)
Click to show internal directories.
Click to hide internal directories.