mq

package
v0.0.0-...-c780586 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

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

发布消息

func StartConsume

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

开始监听队列,获取消息

Types

type TransferData

type TransferData struct {
	TaskID int64
	Data   interface{}
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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