Versions in this module Expand all Collapse all v1 v1.0.1 Oct 8, 2022 Changes in this version + type Common interface + GetMsg func() []byte + GetMsgID func() int + GetSeqNo func() int + type Encrypted struct + AuthKeyHash []byte + Msg []byte + MsgID int64 + MsgKey []byte + Salt int64 + SeqNo int32 + SessionID int64 + func DeserializeEncrypted(data, authKey []byte) (*Encrypted, error) + func (msg *Encrypted) GetMsg() []byte + func (msg *Encrypted) GetMsgID() int + func (msg *Encrypted) GetSeqNo() int + func (msg *Encrypted) Serialize(client MessageInformator, requireToAck bool) ([]byte, error) + type MessageInformator interface + GetAuthKey func() []byte + GetSeqNo func() int32 + GetServerSalt func() int64 + GetSessionID func() int64 + type Unencrypted struct + Msg []byte + MsgID int64 + func DeserializeUnencrypted(data []byte) (*Unencrypted, error) + func (msg *Unencrypted) GetMsg() []byte + func (msg *Unencrypted) GetMsgID() int + func (msg *Unencrypted) GetSeqNo() int + func (msg *Unencrypted) Serialize(client MessageInformator) ([]byte, error)