package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Jul 4, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
README
封装协议说明:
MARK(4B)|CHAIN(1B)|MSGTYPE(2B)|DATALEN(4B)|DATA
MARK: 'XHWX'
CHAIN: 'R' :XServiceChainReal
'V' :XServiceChainVirtual
MSGTYPE: 0: test_decoding 原始数据(BigEndian)
DATALEN: data数据的长度(BigEndian)
DATA: 数据体
Documentation
¶
View Source
const (
XServiceChainReal = "real"
XServiceChainVirtual = "virtual"
)
type Body struct {
Schema string `json:"schema"`
Table string `json:"table"`
Operation string `json:"operation"`
Data map[string]interface{} `json:"data"`
OperateTime int64 `json:"operateTime"`
}
type Message struct {
Body Body `json:"body"`
XServiceChain string `json:"x_service_chain"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.