rmq

package module
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT 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(url string) *Client

func (*Client) Connect

func (client *Client) Connect() error

func (*Client) Disconnect

func (client *Client) Disconnect()

func (*Client) Publish

func (client *Client) Publish(topic string, payload []byte, qos QoS) error

func (*Client) Subscribe

func (client *Client) Subscribe(topic string, qos QoS) (chan []byte, error)

func (*Client) Unsubscribe

func (client *Client) Unsubscribe(topic string) error

func (*Client) WithOrderMatters added in v0.4.0

func (client *Client) WithOrderMatters() *Client

func (*Client) WithPassword

func (client *Client) WithPassword(password string) *Client

func (*Client) WithRetry

func (client *Client) WithRetry(number int) *Client

func (*Client) WithUsername

func (client *Client) WithUsername(username string) *Client

type QoS

type QoS byte
const (
	AtMostOnce  QoS = 0
	AtLeastOnce QoS = 1
	ExactlyOnce QoS = 2
)

Jump to

Keyboard shortcuts

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