mq

package
v0.0.0-...-610668b Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options func(*RabbitMqHub)

type RabbitMqHub

type RabbitMqHub struct {
	URL       string
	QueueName string
	// contains filtered or unexported fields
}

func NewRabbitMqHub

func NewRabbitMqHub(cfg RabbitMqHub, opts ...Options) *RabbitMqHub

NewRabbitMqHub

func (*RabbitMqHub) Channel

func (hub *RabbitMqHub) Channel() (*amqp.Channel, error)

channel

func (*RabbitMqHub) Close

func (hub *RabbitMqHub) Close() error

close

func (*RabbitMqHub) CloseChannel

func (hub *RabbitMqHub) CloseChannel() error

channel

func (*RabbitMqHub) Connect

func (hub *RabbitMqHub) Connect() (*amqp.Connection, error)

Connect

func (*RabbitMqHub) ConnectQueue

func (hub *RabbitMqHub) ConnectQueue(q string) (amqp.Queue, error)

ConnectQueue

Jump to

Keyboard shortcuts

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