Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddBuvidCount(c context.Context, buvidCounts map[string]map[int64]int64) (err error)
- func (d *Dao) BuvidCount(c context.Context, faid int64, buvid string) (res int64, err error)
- func (d *Dao) Close()
- func (d *Dao) ExistsAuth(c context.Context, key string) (ok bool, err error)
- func (d *Dao) Ping(c context.Context) error
- func (dao *Dao) VideoAds(c context.Context) (ads []*model.VideoAD, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao is resource dao.
func (*Dao) AddBuvidCount ¶
AddBuvidCount add buvid count info into redis.
func (*Dao) BuvidCount ¶
BuvidCount get buvid count info from redis.
func (*Dao) ExistsAuth ¶
ExistsAuth if existes buvid in redis.
Click to show internal directories.
Click to hide internal directories.