rabbit_reconnector

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconnector

type Reconnector interface {
	RabbitReConnector()
	RabbitConnect() (err error)
	GetConnection() *amqp.Connection
	SubscribeTo(exhangeName string, queueName string, routingKey string) (<-chan amqp.Delivery, *amqp.Channel, error)
	PublishResponse(ch *amqp.Channel, exchangeName string, replyTo string, correlationId string, body string, sessionId string, content_type string) (err error)
	ExecuteRPC(ch *amqp.Channel, exhangeName string, body []byte, strTimeout string, routingKey string) (response []byte, err error)
	PublishTo(ch *amqp.Channel, exhangeName string, routingKey string, body string) (err error)
}

func New

func New(amqpHost string, handler ReconnectorEventHandler) (Reconnector, error)

func NewAndStart added in v0.0.5

func NewAndStart(amqpHost string, handler ReconnectorEventHandler) (Reconnector, error)

type ReconnectorEventHandler

type ReconnectorEventHandler interface {
	AfterReconnect(AmqpConnection *amqp.Connection, ExitSignal chan bool) error
}

Jump to

Keyboard shortcuts

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