Documentation ¶
Index ¶
Constants ¶
View Source
const ( // STOP stop field STOP byte = 0x0 )
Variables ¶
This section is empty.
Functions ¶
func DecodeCompact ¶
DecodeCompact 解析thrift compact协议
func ReplaceSequenceId ¶ added in v1.3.3
func ReplaceSequenceId(request []byte, callOutbound *recording.CallOutbound)
Types ¶
type CompactKind ¶
type CompactKind byte
const ( CUnknowKind CompactKind = 0x00 CTrue CompactKind = 0x01 CFalse CompactKind = 0x02 CByte CompactKind = 0x03 CI16 CompactKind = 0x04 CI32 CompactKind = 0x05 CI64 CompactKind = 0x06 CDouble CompactKind = 0x07 CBinary CompactKind = 0x08 CList CompactKind = 0x09 CSet CompactKind = 0x0a CMap CompactKind = 0x0b CStruct CompactKind = 0x0c )
func (CompactKind) String ¶
func (k CompactKind) String() string
func (CompactKind) ToKind ¶
func (k CompactKind) ToKind() Kind
type MessageType ¶
type MessageType byte
const ( UnknowMessageType MessageType = 0x00 Call MessageType = 0x01 Reply MessageType = 0x02 Exception MessageType = 0x03 Oneway MessageType = 0x04 )
func GetMessageType ¶
func GetMessageType(b byte) (MessageType, error)
func (MessageType) String ¶
func (mt MessageType) String() string
Click to show internal directories.
Click to hide internal directories.