rabbitmq

package
v0.0.0-...-5f382f4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cfg config.RabbitMQ) (err error)

Types

type Rabbit

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

func Get

func Get() *Rabbit

func (Rabbit) GetCh

func (r Rabbit) GetCh() *amqp.Channel

GetCh returns reserved AMQP channel.

func (Rabbit) GetConn

func (r Rabbit) GetConn() *amqp.Connection

GetConn returns reserved AMQP connection.

func (Rabbit) NewCh

func (r Rabbit) NewCh() (*amqp.Channel, error)

NewCh creates new AMQP channel with existing connection.

Jump to

Keyboard shortcuts

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