mq

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQ

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

MQ structure

func NewMQ

func NewMQ() MQ

NewMQ to Initialize MQ

func (*MQ) BindQueueWithExchange

func (mq *MQ) BindQueueWithExchange(queue string, exchange string, key string, args amqp.Table)

BindQueueWithExchange function

func (*MQ) Connect

func (mq *MQ) Connect(connString string)

Connect to MQ

func (*MQ) CreateChannel

func (mq *MQ) CreateChannel()

CreateChannel With MQ

func (*MQ) CreateExchange

func (mq *MQ) CreateExchange(name string, kind string, durable bool)

CreateExchange to create new exchange

func (*MQ) CreateQueue

func (mq *MQ) CreateQueue(name string, durable bool, autoDelete bool, exclusive bool, noWait bool, args amqp.Table)

CreateQueue in mq

func (*MQ) EstablishWorker

func (mq *MQ) EstablishWorker(queue string) <-chan amqp.Delivery

EstablishWorker method

func (*MQ) Publish

func (mq *MQ) Publish(exchange string, queue string, data interface{})

Publish message

func (*MQ) WriteToQueue

func (mq *MQ) WriteToQueue(queue string, data interface{})

WriteToQueue function

Jump to

Keyboard shortcuts

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