rabbitmq

package
v0.0.0-...-f3ab251 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBroker

type IBroker struct {
	Connection *amqp.Connection
	Channel    *amqp.Channel
}

func Get

func Get() *IBroker

func Init

func Init(dsn string) (*IBroker, error)

func (*IBroker) ConnQueue

func (b *IBroker) ConnQueue(queue string) (<-chan amqp.Delivery, error)

func (*IBroker) InitQueue

func (b *IBroker) InitQueue(queue string) error

func (*IBroker) SendToQueue

func (b *IBroker) SendToQueue(queue string, message amqp.Publishing) error

Jump to

Keyboard shortcuts

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