Documentation ¶
Index ¶
- type Db
- func (db *Db) AddUser(botId int64, m *model.User) (int64, error)
- func (db *Db) CheckComponentExist(botId int64, compId int64) (bool, error)
- func (db *Db) CheckUserExistByTgId(botId int64, tgId int64) (bool, error)
- func (db *Db) CloseConnection()
- func (db *Db) Component(botId int64, compID int64) (*model.Component, error)
- func (db *Db) Components(botId int64, groupId int64) (map[int64]*model.ComponentData, error)
- func (db *Db) GetBotToken(userId int64, botId int64) (*string, error)
- func (db *Db) GetRunningBots() (*[]*model.Bot, error)
- func (db *Db) SetUserContextByTgId(botId int64, userId int64, ctx *bctx.Context) error
- func (db *Db) SetUserStepByTgId(botId int64, userId int64, stepID int64) error
- func (db *Db) UserByTgId(userId int64, botId int64) (*model.User, error)
- func (db *Db) UserContextByTgId(botId int64, userId int64) (*bctx.Context, error)
- func (db *Db) UserStepByTgId(botId int64, userId int64) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
func OpenConnection ¶
func (*Db) CheckComponentExist ¶
func (*Db) CheckUserExistByTgId ¶
func (*Db) CloseConnection ¶
func (db *Db) CloseConnection()
func (*Db) Components ¶
func (*Db) SetUserContextByTgId ¶
func (*Db) SetUserStepByTgId ¶
func (*Db) UserContextByTgId ¶
Click to show internal directories.
Click to hide internal directories.