Documentation
¶
Index ¶
- type Consumer
- type Option
- func WithAutoAck(autoAck bool) Option
- func WithExchange(exchange string) Option
- func WithMiddlewares(mws ...middleware.MiddlewareFunc) Option
- func WithQueue(queue string) Option
- func WithQueueDeclare(declare bool) Option
- func WithQueueOptions(options amqp.Table) Option
- func WithRoutingKey(key string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
func NewConsumer(ch *amqp.Channel, handler middleware.HandlerFunc, opts ...Option) (*Consumer, error)
type Option ¶
type Option func(*Options)
func WithAutoAck ¶
func WithExchange ¶
func WithMiddlewares ¶
func WithMiddlewares(mws ...middleware.MiddlewareFunc) Option
func WithQueueDeclare ¶
func WithQueueOptions ¶
func WithRoutingKey ¶
Click to show internal directories.
Click to hide internal directories.