Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MagicNumber ¶
func MagicNumber() byte
Types ¶
type CompressType ¶
type CompressType byte
Extend header
compressor
const ( CompressNone CompressType = iota Gzip )
type Header ¶
type Header [11]byte
func (Header) CheckMagicNumber ¶
func (Header) TotalLength ¶
func (h Header) TotalLength() TotalLength
type HeaderLength ¶
type HeaderLength int16
type MessageType ¶
type MessageType byte
const ( // Request Type Request MessageType = iota // Response Type Response )
type SerializerType ¶
type SerializerType byte
const ( // Using raw []byte and don't serialize/deserialize SerializerNone SerializerType = iota // JSON for Payload JSON // Protobuf for Payload ProtoBuffer // MsgPack for Payload MsgPack // Thrift for Payload Thrift )
type TotalLength ¶
type TotalLength int32
Click to show internal directories.
Click to hide internal directories.