utils

package
v0.0.0-...-ecf2efd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthKeyHash

func AuthKeyHash(key []byte) []byte

func FullStack

func FullStack()

func GenerateMessageId

func GenerateMessageId() int64

GenerateMessageId отдает по сути unix timestamp но ужасно специфическим образом TODO: нахуя нужно битовое и на -4??

func GenerateSessionID

func GenerateSessionID() int64

func Sha1Byte

func Sha1Byte(input []byte) []byte

Types

type SyncIntObjectChan

type SyncIntObjectChan struct {
	// contains filtered or unexported fields
}

func NewSyncIntObjectChan

func NewSyncIntObjectChan() *SyncIntObjectChan

func (*SyncIntObjectChan) Add

func (s *SyncIntObjectChan) Add(key int, value chan tl.Object)

func (*SyncIntObjectChan) Delete

func (s *SyncIntObjectChan) Delete(key int) bool

func (*SyncIntObjectChan) Get

func (s *SyncIntObjectChan) Get(key int) (chan tl.Object, 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) Add

func (s *SyncIntReflectTypes) Add(key int, value []reflect.Type)

func (*SyncIntReflectTypes) Delete

func (s *SyncIntReflectTypes) Delete(key int) bool

func (*SyncIntReflectTypes) Get

func (s *SyncIntReflectTypes) Get(key int) ([]reflect.Type, 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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL