mq

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 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 {
	Config  Config
	Ctx     *amqp.Connection
	Channel *amqp.Channel
	Queue   amqp.Queue
	// contains filtered or unexported fields
}

func NewMQ

func NewMQ(cfg Config) Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) Connect

func (c *Client) Connect(qName string) error

func (*Client) EnQueue

func (c *Client) EnQueue(key string, queueId string, exchange *string, data []byte) error

type Config

type Config struct {
	Host        string
	Port        string
	Username    string
	Password    string
	VirtualHost string
	Channel     string
}

Jump to

Keyboard shortcuts

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