rabbit

package
v0.0.0-...-842dff9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: Apache-2.0 Imports: 6 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(
	connection string,
	exchange string,
	exchangeKind string,
	exchangeDurable bool,
	routingKeys []string,
	logger *zap.SugaredLogger,
) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

Close, closed the client connection and execute cleanup operations

func (*Client) Consume

func (c *Client) Consume() (chan core.Message, error)

func (*Client) Produce

func (c *Client) Produce(message core.Message) error

type ZapLogger

type ZapLogger struct {
	*zap.SugaredLogger
}

func (ZapLogger) Tracef

func (l ZapLogger) Tracef(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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