Documentation ¶
Index ¶
- Variables
- func AuthKeyHash(key []byte) []byte
- func FullStack()
- func GenerateMessageId() int64
- func GenerateSessionID() int64
- func GetPacketLengthMTProtoCompatible(bytesToGetInfo []byte) (int, error)
- func PacketLengthMTProtoCompatible(data []byte) []byte
- func Sha1Byte(input []byte) []byte
- type SyncIntObjectChan
- type SyncIntReflectTypes
- type SyncSetInt
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPacketSizeIsBigger = errors.New("packet size is more than 127 bytes, require 4 bytes value")
)
Functions ¶
func AuthKeyHash ¶
func GenerateMessageId ¶
func GenerateMessageId() int64
GenerateMessageId отдает по сути unix timestamp но ужасно специфическим образом TODO: нахуя нужно битовое и на -4??
func GenerateSessionID ¶
func GenerateSessionID() int64
func GetPacketLengthMTProtoCompatible ¶
исходя из переданного числа в bytestoGetInfo считает количество СЛОВ и отдает количество БАЙТ которые нужно прочитать
Types ¶
type SyncIntObjectChan ¶
type SyncIntObjectChan struct {
// contains filtered or unexported fields
}
func NewSyncIntObjectChan ¶
func NewSyncIntObjectChan() *SyncIntObjectChan
func (*SyncIntObjectChan) Delete ¶
func (s *SyncIntObjectChan) Delete(key int) bool
func (*SyncIntObjectChan) Has ¶
func (s *SyncIntObjectChan) Has(key int) bool
func (*SyncIntObjectChan) Keys ¶
func (s *SyncIntObjectChan) Keys() []int
type SyncIntReflectTypes ¶
type SyncIntReflectTypes struct {
// contains filtered or unexported fields
}
func NewSyncIntReflectTypes ¶
func NewSyncIntReflectTypes() *SyncIntReflectTypes
func (*SyncIntReflectTypes) Delete ¶
func (s *SyncIntReflectTypes) Delete(key int) bool
func (*SyncIntReflectTypes) Has ¶
func (s *SyncIntReflectTypes) Has(key int) bool
func (*SyncIntReflectTypes) Keys ¶
func (s *SyncIntReflectTypes) Keys() []int
type SyncSetInt ¶
type SyncSetInt struct {
// contains filtered or unexported fields
}
func NewSyncSetInt ¶
func NewSyncSetInt() *SyncSetInt
func (*SyncSetInt) Add ¶
func (s *SyncSetInt) Add(key int) bool
func (*SyncSetInt) Delete ¶
func (s *SyncSetInt) Delete(key int) bool
func (*SyncSetInt) Has ¶
func (s *SyncSetInt) Has(key int) bool
func (*SyncSetInt) Reset ¶
func (s *SyncSetInt) Reset()
Click to show internal directories.
Click to hide internal directories.