integration

package
v0.0.0-...-16b0e95 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 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 ConnectionRabbitMQ

type ConnectionRabbitMQ struct {
	Conn    *amqp.Connection
	Channel *amqp.Channel
}

ConnectionRabbitMQ - connect struct rabbitMQ

func GetConnectionRabbit

func GetConnectionRabbit(rabbitURL string) (ConnectionRabbitMQ, error)

GetConnectionRabbit - get connection rabbitMQ

func (ConnectionRabbitMQ) PublishRabbitMQ

func (conn ConnectionRabbitMQ) PublishRabbitMQ(routingKey string, data []byte, exchange string) error

PublishRabbitMQ - publish rabbitMQ queue

func (ConnectionRabbitMQ) StartQueeConsumer

func (conn ConnectionRabbitMQ) StartQueeConsumer(queueName, routingKey string, handler func(d amqp.Delivery) bool, concurrency int) error

StartQueeConsumer - handle

Jump to

Keyboard shortcuts

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