package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Nov 10, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Business struct {
Name string `json:"name"`
Domain string `json:"domain"`
}
Business 业务名字,域名
type Device struct {
Type string `json:"type"`
ID string `json:"id"`
}
Device 设备类型,id
type Message struct {
Business Business `json:"business"`
Device Device `json:"device"`
}
Message 消息定义
GetEOF EOF消息,用于标识为消息末尾,
在并发阻塞队列中无法通过队列是否为空来判断后面是否还有消息
type Task struct {
MessageList []Message
Qps int
}
Task 生产者生产的消息列表
Source Files
¶
Click to show internal directories.
Click to hide internal directories.