rabbitmqclient

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ping

func Ping() bool

Types

type RabbitMQConnection

type RabbitMQConnection interface {
	GetChannel() *amqp.Channel
	RegisterHandler(RabbitMQListnerInterface) error
	SendMessage(ctx context.Context, message any, routing string, extraheaders map[string]interface{}) error
	clients.CommonClient
}

func NewRabbitMQConnection

func NewRabbitMQConnection(cp RabbitMQCredentialProvider, host string, port string, broadcastName string) RabbitMQConnection

type RabbitMQCredentialProvider

type RabbitMQCredentialProvider interface {
	GetCredentials() (string, string)
}

type RabbitMQListnerInterface

type RabbitMQListnerInterface interface {
	Listen(chan *amqp.Error)
}

Jump to

Keyboard shortcuts

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