Documentation ¶
Index ¶
- func PromCacheHit(name string)
- func PromCacheMiss(name string)
- func PromError(name string)
- func PromInfo(name string)
- type Dao
- func (d *Dao) AddRexp(c context.Context, uid int64, rexp int64) (affect int64, err error)
- func (d *Dao) AddUexp(c context.Context, uid int64, uexp int64) (affect int64, err error)
- func (d *Dao) Close()
- func (d *Dao) DelExpFromMemCache(c context.Context, mid int64) (err error)
- func (d *Dao) Exp(c context.Context, uid int64) (exp *expm.Exp, err error)
- func (d *Dao) GetExpFromMemCache(ctx context.Context, mids []int64) (expList map[int64]*expModel.LevelInfo, missedUids []int64, err error)
- func (d *Dao) InitExp(c context.Context, uid int64, uexp int64, rexp int64) (row int64, err error)
- func (d *Dao) MultiExp(c context.Context, uids []int64) (exps []*expm.Exp, err error)
- func (d *Dao) Ping(ctx context.Context) error
- func (d *Dao) SetExpListCache(c context.Context, expList map[int64]*expModel.LevelInfo) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao exp dao
func (*Dao) DelExpFromMemCache ¶
DelExpFromMemCache 删除获取用户经验cache,不支持批量
func (*Dao) GetExpFromMemCache ¶
func (d *Dao) GetExpFromMemCache(ctx context.Context, mids []int64) (expList map[int64]*expModel.LevelInfo, missedUids []int64, err error)
GetExpFromMemCache 对外接口
Click to show internal directories.
Click to hide internal directories.