Documentation ¶
Index ¶
- Variables
- type Rdb
- func (rdb *Rdb) CheckUserExist(botId int64, userID int64) (int64, error)
- func (rdb *Rdb) DeleteComponents(botId int64, groupId int64) error
- func (rdb *Rdb) GetComponents(botId int64, groupId int64) (*map[int64]*model.ComponentData, error)
- func (rdb *Rdb) GetUserContext(botId int64, groupId int64, userId int64) (*bctx.Context, error)
- func (rdb *Rdb) GetUserStep(botId int64, groupId int64, userID int64) (*int64, error)
- func (rdb *Rdb) SetComponents(botId int64, groupId int64, comps map[int64]*model.ComponentData) error
- func (rdb *Rdb) SetUserContext(botId int64, groupId int64, userId int64, bctx *bctx.Context) error
- func (rdb *Rdb) SetUserStep(botId int64, groupId int64, userID int64, stepID int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type Rdb ¶
type Rdb struct {
*redis.Client
}
func NewClient ¶
func NewClient(c *config.RedisConfig) *Rdb
func (*Rdb) CheckUserExist ¶
func (*Rdb) GetComponents ¶
func (*Rdb) GetUserContext ¶
func (*Rdb) GetUserStep ¶
func (*Rdb) SetComponents ¶
func (*Rdb) SetUserContext ¶
Click to show internal directories.
Click to hide internal directories.