Documentation ¶
Index ¶
Constants ¶
View Source
const HeadSize = 29
View Source
const LightHandshakeSt = 0x09 // Handshake 起始符
View Source
const LightSt = 0x05 // 起始符
Variables ¶
View Source
var Crc32 = false
var MaxPayloadMemory = 10 << 20 // 每个请求体最大 10M 超过进行拆分
Functions ¶
Types ¶
type Header ¶
type Header struct { St byte Version byte Crc32 uint32 MagicNumberSize uint32 ServerNameSize uint32 ServerMethodSize uint32 MetaDataSize uint32 PayloadSize uint32 RespType byte CompressorType byte SerializationType byte }
func DecodeHeader ¶
type Message ¶
Click to show internal directories.
Click to hide internal directories.