Documentation
¶
Index ¶
- Variables
- func GetInputUserFromId(id int64) (*tg.InputUser, error)
- func GetPeerInfoFromId(id int64) (*wg.PeerInfo, error)
- func NewPeerInfo(u *wg.PeerInfo) error
- func SaveChannel(id int64, hash int64) error
- func SaveTgChannel(ch *tg.Channel) error
- func SaveTgUser(u *tg.User) error
- func SaveUser(id int64, hash int64) error
- func StartDatabase(db *gorm.DB, mut *sync.Mutex) error
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 NewPeerInfo ¶
func SaveChannel ¶
func SaveTgChannel ¶
func SaveTgUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.