Documentation
¶
Index ¶
- type Dao
- func (d *Dao) AddAuthority(c context.Context, mids []int64) (int64, error)
- func (d *Dao) AscTrendCount(c context.Context, date string, query string) (count int, err error)
- func (d *Dao) Close()
- func (d *Dao) DescTrendCount(c context.Context, date string, query string) (count int, err error)
- func (d *Dao) GetAllParameter(c context.Context) (parameters map[string]int64, err error)
- func (d *Dao) GetRatingStatis(c context.Context, ctype int64, date, tags string) (statis []*model.RatingStatis, err error)
- func (d *Dao) GetTrendAsc(c context.Context, ctype string, date string, query string) (ts []*model.Trend, err error)
- func (d *Dao) GetTrendDesc(c context.Context, ctype string, date string, query string) (ts []*model.Trend, err error)
- func (d *Dao) InsertParameter(c context.Context, val string) (rows int64, err error)
- func (d *Dao) LevelList(c context.Context, mon int, date string, mids []int64) (list []*model.RatingInfo, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) RmAuthority(c context.Context, mids []int64) (int64, error)
- func (d *Dao) ScoreList(c context.Context, mon int, date, where string) (list []*model.RatingInfo, err error)
- func (d *Dao) TaskStatus(c context.Context, date string) (status int, err error)
- func (d *Dao) Total(c context.Context, mon int, date, where string) (total int64, err error)
- func (d *Dao) UpScore(c context.Context, mon int, mid int64, date string) (res *model.RatingInfo, err error)
- func (d *Dao) UpScores(c context.Context, mon int, mid int64) (list []*model.RatingInfo, 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 dao
func (*Dao) AddAuthority ¶
AddAuthority .
func (*Dao) AscTrendCount ¶
AscTrendCount asc trend count
func (*Dao) DescTrendCount ¶
DescTrendCount desc trend count
func (*Dao) GetAllParameter ¶
GetAllParameter get all parameter
func (*Dao) GetRatingStatis ¶
func (d *Dao) GetRatingStatis(c context.Context, ctype int64, date, tags string) (statis []*model.RatingStatis, err error)
GetRatingStatis get rating statistics
func (*Dao) GetTrendAsc ¶
func (d *Dao) GetTrendAsc(c context.Context, ctype string, date string, query string) (ts []*model.Trend, err error)
GetTrendAsc get asc trend
func (*Dao) GetTrendDesc ¶
func (d *Dao) GetTrendDesc(c context.Context, ctype string, date string, query string) (ts []*model.Trend, err error)
GetTrendDesc get desc trend
func (*Dao) InsertParameter ¶
InsertParameter insert vals into rating_parameter
func (*Dao) LevelList ¶
func (d *Dao) LevelList(c context.Context, mon int, date string, mids []int64) (list []*model.RatingInfo, err error)
LevelList returns info
func (*Dao) RmAuthority ¶
RmAuthority .
func (*Dao) ScoreList ¶
func (d *Dao) ScoreList(c context.Context, mon int, date, where string) (list []*model.RatingInfo, err error)
ScoreList return info
func (*Dao) TaskStatus ¶
TaskStatus returns status of task on date
Click to show internal directories.
Click to hide internal directories.