rabbitmq

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(p Params) (*Client, error)

func (*Client) Consume

func (c *Client) Consume() (<-chan amqp.Delivery, error)

func (*Client) Publish

func (c *Client) Publish(ctx context.Context, body []byte) error

func (*Client) QueueDeclare

func (c *Client) QueueDeclare() (amqp.Queue, error)

type Params added in v0.0.15

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger *slog.Logger
	Config *config.Config
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL