mq

package
v0.0.0-...-a949f40 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init : 初始化MQ连接信息

func Publish

func Publish(exchange, routingKey string, msg []byte) bool

Publish : 发布消息

func StartConsume

func StartConsume(qName, cName string, callback func(msg []byte) bool)

StartConsume : 接收消息

func StopConsume

func StopConsume()

StopConsume : 停止监听队列

func UpdateRabbitHost

func UpdateRabbitHost(host string)

UpdateRabbitHost : 更新mq host

Types

type TransferData

type TransferData struct {
	FileHash      string
	CurLocation   string
	DestLocation  string
	DestStoreType cmn.StoreType
}

TransferData : 将要写到rabbitmq的数据的结构体

Jump to

Keyboard shortcuts

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