Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close()
- func (c *Client) Consumer(queueName, routingKey, exchangeName string, exclusive bool, dlExchange string) (err error)
- func (c *Client) DelayedExchange(queueName, exchangeName, routingKey string, retryDelay time.Duration) (delayExchange string, err error)
- func (c *Client) Enabled() bool
- func (c *Client) Exclusive(ctx context.Context, name string, timeout time.Duration, ...) (acquired bool, err error)
- func (c *Client) Listen(queueResolver QueueResolver, exchange, routingKey string) (string, <-chan amqp.Delivery, error)
- func (c *Client) Ping() error
- func (c *Client) Publish(ctx context.Context, payload amqp.Publishing, exchange, routingKey string) (err error)
- func (c *Client) PublishJSON(ctx context.Context, item any, exchange, routingKey string) (err error)
- func (c *Client) Publisher(exchangeName, exchangeType string, args amqp.Table) (err error)
- func (c *Client) SetupExclusive(ctx context.Context, name string) (err error)
- func (c *Client) StopListener(consumer string) (err error)
- func (c *Client) Vhost() string
- type Config
- type Connection
- type QueueResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConfig = errors.New("URI is required")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config, prometheusRegister prometheus.Registerer, tracer trace.Tracer) (*Client, error)
func NewFromURI ¶ added in v4.28.3
func NewFromURI(uri string, prefetch int, prometheusRegister prometheus.Registerer, tracer trace.Tracer) (*Client, error)
func (*Client) DelayedExchange ¶ added in v4.30.1
func (*Client) PublishJSON ¶ added in v4.29.6
func (*Client) SetupExclusive ¶ added in v4.29.5
func (*Client) StopListener ¶ added in v4.25.0
type Connection ¶
type QueueResolver ¶ added in v4.30.1
Click to show internal directories.
Click to hide internal directories.