mq

package
v0.0.0-...-85027f2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup()

Types

type RabbitmqClient

type RabbitmqClient struct {
	ConnStr string
	Topic   string
	Conn    *amqp.Connection
	Ch      *amqp.Channel
}
var RbClient *RabbitmqClient

func (*RabbitmqClient) Close

func (r *RabbitmqClient) Close() error

todo: 何时关闭

func (*RabbitmqClient) SendMsgToRabbitMq

func (r *RabbitmqClient) SendMsgToRabbitMq(topic string, data []byte) error

Jump to

Keyboard shortcuts

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