Documentation ¶
Index ¶
- Constants
- Variables
- func AuthKeyHash(key []byte) []byte
- func CloseChannelWithoutPanic(c chan tl.Object)
- func FullStack()
- func GenerateMessageId(prevID int64) int64
- func GenerateSessionID() int64
- func RandomBytes(size int) []byte
- func Sha1(input string) []byte
- func Sha1Byte(input []byte) []byte
- func Xor(dst, src []byte)
- type Logger
- type PingParams
- type SyncIntObjectChan
- func (s *SyncIntObjectChan) Add(key int, value chan tl.Object)
- func (s *SyncIntObjectChan) Close()
- func (s *SyncIntObjectChan) Delete(key int) bool
- func (s *SyncIntObjectChan) Get(key int) (chan tl.Object, bool)
- func (s *SyncIntObjectChan) Has(key int) bool
- func (s *SyncIntObjectChan) Keys() []int
- func (s *SyncIntObjectChan) Reset()
- type SyncIntReflectTypes
- func (s *SyncIntReflectTypes) Add(key int, value []reflect.Type)
- func (s *SyncIntReflectTypes) Delete(key int) bool
- func (s *SyncIntReflectTypes) Get(key int) ([]reflect.Type, bool)
- func (s *SyncIntReflectTypes) Has(key int) bool
- func (s *SyncIntReflectTypes) Keys() []int
- func (s *SyncIntReflectTypes) Reset()
- type SyncSetInt
Constants ¶
View Source
const ( // DebugLevel is the lowest level of logging DebugLevel = iota // InfoLevel is the second lowest level of logging InfoLevel // WarnLevel is the third highest level of logging WarnLevel // ErrorLevel is the highest level of logging ErrorLevel // NoLevel disables all logging NoLevel )
Variables ¶
View Source
var (
DcList = map[int]string{
1: "149.154.175.58:443",
2: "149.154.167.50:443",
3: "149.154.175.100:443",
4: "149.154.167.91:443",
5: "91.108.56.151:443",
}
)
Functions ¶
func AuthKeyHash ¶
func GenerateMessageId ¶
func GenerateSessionID ¶
func GenerateSessionID() int64
func RandomBytes ¶
Types ¶
type Logger ¶
Logger is the logging struct.
type PingParams ¶
type PingParams struct {
PingID int64
}
func (*PingParams) CRC ¶
func (*PingParams) CRC() uint32
type SyncIntObjectChan ¶
type SyncIntObjectChan struct {
// contains filtered or unexported fields
}
func NewSyncIntObjectChan ¶
func NewSyncIntObjectChan() *SyncIntObjectChan
func (*SyncIntObjectChan) Close ¶
func (s *SyncIntObjectChan) Close()
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
func (*SyncIntObjectChan) Reset ¶
func (s *SyncIntObjectChan) Reset()
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
func (*SyncIntReflectTypes) Reset ¶
func (s *SyncIntReflectTypes) Reset()
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.