Documentation
¶
Index ¶
- Variables
- func AskForConfirmation() bool
- func AuthKeyHash(key []byte) []byte
- func CloseChannelWithoutPanic(c chan tl.Object)
- func FmtIp(ipv6WithPort string) string
- func FmtMethod(data tl.Object) string
- func FullStack()
- func GenerateSessionID() int64
- func GetDefaultHostIp(dc int, test bool, ipv6 bool) string
- func NewMsgIDGenerator() func(timeOffset int64) int64
- func RandomBytes(size int) []byte
- func Sha1(input string) []byte
- func Sha1Byte(input []byte) []byte
- func Vtcp(isV6 bool) string
- func Xor(dst, src []byte)
- type AudioInfo
- type DC
- type DCOptions
- type LogLevel
- type Logger
- func (l *Logger) Color() bool
- func (l *Logger) Debug(v ...any)
- func (l *Logger) Error(v ...any)
- func (l *Logger) Info(v ...any)
- func (l *Logger) Lev() LogLevel
- func (l *Logger) NoColor(nocolor ...bool) *Logger
- func (l *Logger) Panic(v ...any)
- func (l *Logger) SetLevel(level LogLevel) *Logger
- func (l *Logger) SetPrefix(prefix string) *Logger
- func (l *Logger) Trace(v ...any)
- func (l *Logger) Warn(v ...any)
- type MKVInfo
- type MP4Info
- 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 SyncSet
- func (s *SyncSet[T]) Add(key T) bool
- func (s *SyncSet[T]) Clear()
- func (s *SyncSet[T]) Clone() *SyncSet[T]
- func (s *SyncSet[T]) Delete(key T)
- func (s *SyncSet[T]) ForEach(fn func(key T) bool)
- func (s *SyncSet[T]) Has(key T) bool
- func (s *SyncSet[T]) Keys() []T
- func (s *SyncSet[T]) Len() int
- func (s *SyncSet[T]) Pop(key T) bool
- type UpdatesGetStateParams
Constants ¶
This section is empty.
Variables ¶
View Source
var DcList = DCOptions{ DCS: map[int][]DC{ 1: {{"149.154.175.58:443", false}}, 2: {{"149.154.167.50:443", false}}, 3: {{"149.154.175.100:443", false}}, 4: {{"149.154.167.91:443", false}, {"[2001:067c:04e8:f002::a]:443", true}}, 5: {{"91.108.56.151:443", false}}, }, TestDCs: map[int]string{ 1: "149.154.175.10:443", 2: "149.154.167.40:443", 3: "149.154.175.117:443", }, CdnDCs: map[int][]DC{ 201: {{"91.108.23.100:443", false}}, 203: {{"91.105.192.100:443", false}, {"[2a0a:f280:0203:000a:5000:0000:0000:0100]:443", true}}, }, }
Functions ¶
func AskForConfirmation ¶
func AskForConfirmation() bool
func AuthKeyHash ¶
func GenerateSessionID ¶
func GenerateSessionID() int64
func NewMsgIDGenerator ¶
func RandomBytes ¶
Types ¶
type DCOptions ¶
func NewDCOptions ¶ added in v1.6.1
func NewDCOptions() *DCOptions
func (*DCOptions) GetCdnAddr ¶ added in v1.6.1
func (*DCOptions) SearchAddr ¶ added in v1.6.1
type LogLevel ¶ added in v1.4.3
type LogLevel int
const ( // DebugLevel is the lowest level of logging DebugLevel LogLevel = iota + 1 // InfoLevel is the second lowest level of logging (default) InfoLevel // WarnLevel is the third highest level of logging WarnLevel // ErrorLevel is the highest level of logging ErrorLevel // NoLevel disables all logging NoLevel // TraceLevel is the highest level of logging TraceLevel )
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 SyncSet ¶
type SyncSet[T comparable] struct { // contains filtered or unexported fields }
func NewSyncSet ¶
func NewSyncSet[T comparable]() *SyncSet[T]
type UpdatesGetStateParams ¶
type UpdatesGetStateParams struct{}
Click to show internal directories.
Click to hide internal directories.