mq

package
v0.0.0-...-1624629 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: MIT Imports: 3 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(uri string) (*Client, error)

func (*Client) GetConn

func (c *Client) GetConn() *amqp.Connection

func (*Client) PublishBody

func (c *Client) PublishBody(ex, rk, body string) error

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(amqpURI, queueName, ctag string, fn func([]byte)) (*Consumer, error)

func (*Consumer) Shutdown

func (c *Consumer) Shutdown() error

Jump to

Keyboard shortcuts

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