amqp

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClosed = errors.New("amqp connection pool is closed")
)

Functions

func NewConsumerConn added in v0.0.4

func NewConsumerConn(key message.Key, config contract.Config) (contract.Consumer, error)

NewConsumerConn new consumer connection

func NewProducerConn added in v0.0.4

func NewProducerConn(key message.Key, config contract.Config) (contract.Producer, error)

NewProducerConn amqp producer connection

Types

type Config

type Config struct {
	Host     string
	Username string
	Password string
	VHost    string
	Pool     *contract.Pool
}

Config 配置

func (*Config) PoolConfig added in v0.0.4

func (config *Config) PoolConfig() contract.Pool

func (*Config) String

func (config *Config) String() string

Jump to

Keyboard shortcuts

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