amqp

package
v0.0.0-...-4dd8aae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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 Channel

type Channel interface {
	Connect(conn *amqp.Connection) error
}

type Config

type Config struct {
	User           string
	Password       string
	Host           string
	ConnectTimeout time.Duration
}

type Connection

type Connection interface {
	Start() error
	Stop() error
	AddChannel(channel Channel)
}

func NewAMQPConnection

func NewAMQPConnection(cfg *Config, logger Logger) Connection

type Logger

type Logger interface {
	Info(...interface{})
	Error(error, ...interface{})
}

Jump to

Keyboard shortcuts

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