rabbit

package
v0.0.0-...-9b02830 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RabbitChannelGlobal *amqp.Channel
View Source
var RabbitConnectionGlobal *amqp.Connection
View Source
var WorkerPool chan []byte

Functions

func ConnectToRabbit

func ConnectToRabbit() *amqp.Connection

func CreateChannel

func CreateChannel(connection *amqp.Connection) *amqp.Channel

func DeclareQueue

func DeclareQueue(RabbitChannel *amqp.Channel) error

func FailOnError

func FailOnError(err error, msg string) error

func Host

func Host() string

func InitPublishers

func InitPublishers(workers int)

func Port

func Port() string

func PublishToRabbitMQ

func PublishToRabbitMQ(log []byte)

func Pwd

func Pwd() string

func Queue

func Queue() string

func RabbitMQConnectionReconnectHandle

func RabbitMQConnectionReconnectHandle(RabbitConnection *amqp.Connection, RabbitChannel *amqp.Channel, RabbitCloseError chan *amqp.Error)

func RabbitMQCreateConnection

func RabbitMQCreateConnection(RabbitConnection *amqp.Connection, RabbitChannel *amqp.Channel, RabbitCloseError chan *amqp.Error) (*amqp.Connection, *amqp.Channel, chan *amqp.Error)

func StartPublisher

func StartPublisher()

func StartPublisherWorker

func StartPublisherWorker()

func User

func User() string

func WorkerPublishToRabbitMQ

func WorkerPublishToRabbitMQ(RabbitChannel *amqp.Channel, log []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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