rabbitmq

package
v0.0.0-...-cf7ec99 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Config = "config/config.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exchange

type Exchange struct {
	Name string
	Kind string
}

type Rabbitmq

type Rabbitmq struct {
	Username string
	Password string
	Host     string
	Port     string
	Exchange Exchange
}

func Setup

func Setup() *Rabbitmq

func (*Rabbitmq) Connection

func (r *Rabbitmq) Connection() (*amqp.Connection, error)

func (*Rabbitmq) DeclareChannel

func (r *Rabbitmq) DeclareChannel(conn *amqp.Connection) (*amqp.Channel, error)

func (*Rabbitmq) DeclareConsumer

func (r *Rabbitmq) DeclareConsumer(q amqp091.Queue, ch *amqp091.Channel)

func (*Rabbitmq) DeclareExchange

func (r *Rabbitmq) DeclareExchange(ch *amqp.Channel) error

func (*Rabbitmq) DeclareQueue

func (r *Rabbitmq) DeclareQueue(ch *amqp.Channel) (amqp.Queue, error)

func (*Rabbitmq) DeclareQueueBind

func (r *Rabbitmq) DeclareQueueBind(ch *amqp.Channel, q amqp.Queue, k string) error

Jump to

Keyboard shortcuts

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