rabbitmqclient

package
v0.0.0-...-d992795 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: GPL-3.0 Imports: 1 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
}

Client Stores connection and information for rabbitmq

func NewClient

func NewClient(url string, queue string) (client Client, err error)

NewClient Creates a new Client storing the connection, channel, and queue

func (Client) Close

func (cli Client) Close()

Close Shuts down the client's channel and connection

func (Client) Publish

func (cli Client) Publish(contentType string, body []byte) error

Publish Publishes a message to the client's queue

Jump to

Keyboard shortcuts

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