Documentation
¶
Index ¶
- type Cache
- type Service
- func (s *Service) AddAuthority(c context.Context, mids []int64) (int64, error)
- func (s *Service) Close()
- func (s *Service) ExportScores(ctx context.Context, arg *model.RatingListArg, date time.Time) (res []byte, err error)
- func (s *Service) GetLastRatingStatis(c context.Context, ctype int64, tagID string) (statis []*model.RatingStatis, date time.Time, err error)
- func (s *Service) GetRatingStatis(c context.Context, ctype int64, tagID string, date time.Time) (statis []*model.RatingStatis, err error)
- func (s *Service) GetTrendAsc(c context.Context, ctype string, tags []int64, date time.Time, frl, fru int, ...) (total int, ts []*model.Trend, err error)
- func (s *Service) GetTrendDesc(c context.Context, ctype string, tags []int64, date time.Time, frl, fru int, ...) (total int, ts []*model.Trend, err error)
- func (s *Service) InsertParameter(c context.Context, name, remark string, value int) (err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) RatingList(c context.Context, arg *model.RatingListArg, date time.Time) (res []*model.RatingInfo, total int64, err error)
- func (s *Service) RemoveAuthority(c context.Context, mids []int64) (int64, error)
- func (s *Service) ScoreCurrent(c context.Context, mid int64) (res *model.ScoreCurrentResp, err error)
- func (s *Service) ScoreHistory(c context.Context, types []model.ScoreType, mid int64, queryAll bool, ...) (res []*model.UpScoreHistory, err error)
- func (s *Service) StatisExport(c context.Context, ctype int64, tagID string, Compare int) (res []byte, err error)
- func (s *Service) StatisGraph(c context.Context, ctype int64, tagID string, Compare int) (data interface{}, err error)
- func (s *Service) StatisList(c context.Context, ctype int64, tagID string, Compare int) (list []*model.RatingStatis, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) AddAuthority ¶
AddAuthority .
func (*Service) ExportScores ¶
func (s *Service) ExportScores(ctx context.Context, arg *model.RatingListArg, date time.Time) (res []byte, err error)
ExportScores exports scores
func (*Service) GetLastRatingStatis ¶
func (s *Service) GetLastRatingStatis(c context.Context, ctype int64, tagID string) (statis []*model.RatingStatis, date time.Time, err error)
GetLastRatingStatis get last rating statis
func (*Service) GetRatingStatis ¶
func (s *Service) GetRatingStatis(c context.Context, ctype int64, tagID string, date time.Time) (statis []*model.RatingStatis, err error)
GetRatingStatis get rating statis
func (*Service) GetTrendAsc ¶
func (s *Service) GetTrendAsc(c context.Context, ctype string, tags []int64, date time.Time, frl, fru int, mid int64, offset, limit int) (total int, ts []*model.Trend, err error)
GetTrendAsc get trend asc
func (*Service) GetTrendDesc ¶
func (s *Service) GetTrendDesc(c context.Context, ctype string, tags []int64, date time.Time, frl, fru int, mid int64, offset, limit int) (total int, ts []*model.Trend, err error)
GetTrendDesc get trend desc
func (*Service) InsertParameter ¶
InsertParameter insert parameter
func (*Service) RatingList ¶
func (s *Service) RatingList(c context.Context, arg *model.RatingListArg, date time.Time) (res []*model.RatingInfo, total int64, err error)
RatingList returns rating info list
func (*Service) RemoveAuthority ¶
RemoveAuthority .
func (*Service) ScoreCurrent ¶
func (s *Service) ScoreCurrent(c context.Context, mid int64) (res *model.ScoreCurrentResp, err error)
ScoreCurrent returns current rating info
func (*Service) ScoreHistory ¶
func (s *Service) ScoreHistory(c context.Context, types []model.ScoreType, mid int64, queryAll bool, limit int) (res []*model.UpScoreHistory, err error)
ScoreHistory returns score history
func (*Service) StatisExport ¶
func (s *Service) StatisExport(c context.Context, ctype int64, tagID string, Compare int) (res []byte, err error)
StatisExport export statis
Click to show internal directories.
Click to hide internal directories.