Documentation ¶ Index ¶ type Client func NewMQ(cfg Config) Client func (c *Client) Close() error func (c *Client) Connect(qName string) error func (c *Client) EnQueue(key string, queueId string, exchange *string, data []byte) error type Config 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 } Source Files ¶ View all Source files rabbitmq.go Click to show internal directories. Click to hide internal directories.