sessionDatabase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSession      = errors.New("database session is not initialized")
	ErrTooManyRevokes = errors.New("token has been revoked too many times")
)
View Source
var (
	ModelUser = &wotoGlobals.PeerInfo{}
)

Functions

func GetInputUserFromId

func GetInputUserFromId(id int64) (*tg.InputUser, error)

func GetPeerInfoFromId

func GetPeerInfoFromId(id int64) (*wg.PeerInfo, error)

func NewPeerInfo

func NewPeerInfo(u *wg.PeerInfo) error

func SaveChannel

func SaveChannel(id int64, hash int64) error

func SaveTgChannel

func SaveTgChannel(ch *tg.Channel) error

func SaveTgUser

func SaveTgUser(u *tg.User) error

func SaveUser

func SaveUser(id int64, hash int64) error

func StartDatabase

func StartDatabase(db *gorm.DB, mut *sync.Mutex) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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