Documentation ¶
Index ¶
Constants ¶
View Source
const ( ZippedRequest byte = 0x04 // ZippedRequest is a flag saying request is gzipped ZippedResponse = 0x10 // ZippedResponse is a flag saying response can be gzipped EncryptSymmetric = 0x08 // EncryptSymmetric is a flag saying message is encrypted by symmetric key (DES) EncryptPublic = 0x40 // EncryptPublic is a flag saying message is encrypted by public key (RSA) )
Variables ¶
View Source
var HeaderOffsets = map[int]int{
0: 0,
1: 4,
2: 8,
3: 12,
4: 44,
5: 46,
6: 47,
7: 48,
8: 52,
}
HeaderOffsets holds information about header offset lengths
Functions ¶
This section is empty.
Types ¶
type Header ¶
type HeaderFlags ¶
type HeaderFlags struct {
// contains filtered or unexported fields
}
func NewHeaderFlags ¶
func NewHeaderFlags(preset byte) *HeaderFlags
func (*HeaderFlags) Clear ¶
func (hf *HeaderFlags) Clear(flag byte)
func (*HeaderFlags) Has ¶
func (hf *HeaderFlags) Has(flag byte) bool
func (*HeaderFlags) Set ¶
func (hf *HeaderFlags) Set(flag byte)
func (*HeaderFlags) ToByte ¶
func (hf *HeaderFlags) ToByte() byte
func (*HeaderFlags) Toggle ¶
func (hf *HeaderFlags) Toggle(flag byte)
type MsgPool ¶
type MsgPool struct {
// contains filtered or unexported fields
}
func (*MsgPool) ReturnMsgIDToPool ¶
type Packet ¶
type Packet struct {
// contains filtered or unexported fields
}
Packet represents application level data.
type RespPool ¶
type RespPool struct {
// contains filtered or unexported fields
}
func NewRespPool ¶
func NewRespPool() *RespPool
Click to show internal directories.
Click to hide internal directories.