rabbitmq

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	User     string
	Password string
	Host     string
	Port     string
}

func GetByEnv

func GetByEnv() Config

GetByEnv 从env环境获取配置

type Connect

type Connect struct {
	Conn    *amqp.Connection
	Channel *amqp.Channel
}

func (*Connect) Clear

func (c *Connect) Clear()

Clear 清除连接

func (*Connect) Connect

func (c *Connect) Connect(config Config)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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