rabbitclient

package
v0.0.0-...-16d19c9 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 4 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 New

func New(connStr string) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Connect

func (c *Client) Connect()

func (*Client) Consume

func (c *Client) Consume(queueName string, callback func(amqp091.Delivery) error) error

func (*Client) Publish

func (c *Client) Publish(queueName string, body string) error

type Config

type Config struct {
	User string
	Pass string
	Host string
	Port string
}

func (*Config) String

func (cfg *Config) String() string

Jump to

Keyboard shortcuts

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