Documentation ¶
Index ¶
- type Dao
- func (d *Dao) ActDetail(c context.Context, aid int64) (actDetail []*model.ActiveDetail, err error)
- func (d *Dao) ActTeams(c context.Context, tids []int64) (res []*model.Team, err error)
- func (d *Dao) Active(c context.Context, aid int64) (mod *model.Active, err error)
- func (d *Dao) AddActKnockCacheTime(c context.Context, mdID int64) (err error)
- func (d *Dao) AddActKnockoutCache(c context.Context, mdID int64, knock [][]*model.TreeList) (err error)
- func (d *Dao) AddActModuleCache(c context.Context, mmid int64, module []*arcmdl.Arc) (err error)
- func (d *Dao) AddActPageCache(c context.Context, aid int64, act *model.ActivePage) (err error)
- func (d *Dao) AddActPointsCache(c context.Context, aid, mdID, ps int64, points []*model.Contest, total int) (err error)
- func (d *Dao) AddActTopCache(c context.Context, aid, ps int64, tops []*model.Contest, total int) (err error)
- func (d *Dao) AddCRecent(c context.Context, param *model.ParamCDRecent, data []*model.Contest) (err error)
- func (d *Dao) AddCSingleData(c context.Context, id int64, act *model.ContestDataPage) (err error)
- func (d *Dao) AddCacheEpContests(c context.Context, data map[int64]*model.Contest) (err error)
- func (d *Dao) AddCacheEpSeasons(c context.Context, data map[int64]*model.Season) (err error)
- func (d *Dao) AddCacheEpTeams(c context.Context, data map[int64]*model.Team) (err error)
- func (d *Dao) AddMActCache(c context.Context, aid int64, act *model.Active) (err error)
- func (d *Dao) AppSeason(c context.Context) (res []*model.Season, err error)
- func (d *Dao) CacheEpContests(c context.Context, ids []int64) (res map[int64]*model.Contest, err error)
- func (d *Dao) CacheEpSeasons(c context.Context, ids []int64) (res map[int64]*model.Season, err error)
- func (d *Dao) CacheEpTeams(c context.Context, ids []int64) (res map[int64]*model.Team, err error)
- func (d *Dao) Calendar(c context.Context, stime, etime int64) (res []*model.Calendar, err error)
- func (d *Dao) CalendarCache(c context.Context, p *model.ParamFilter) (res []*model.Calendar, err error)
- func (d *Dao) Contest(c context.Context, cid int64) (res *model.Contest, err error)
- func (d *Dao) ContestCache(c context.Context, ps int) (res []*model.Contest, total int, err error)
- func (d *Dao) ContestData(c context.Context, cid int64) (res []*model.ContestsData, err error)
- func (d *Dao) ContestDatas(c context.Context) (res []*model.Contest, err error)
- func (d *Dao) ContestRecent(c context.Context, homeid, awayid, contestid, ps int64) (res []*model.Contest, err error)
- func (d *Dao) DelFavCoCache(c context.Context, mid int64) (err error)
- func (d *Dao) EpContests(c context.Context, keys []int64) (res map[int64]*model.Contest, err error)
- func (d *Dao) EpSeasons(c context.Context, keys []int64) (res map[int64]*model.Season, err error)
- func (d *Dao) EpTeams(c context.Context, keys []int64) (res map[int64]*model.Team, err error)
- func (d *Dao) FMatCache(c context.Context) (res map[string][]*model.Filter, err error)
- func (d *Dao) FVideoCache(c context.Context) (res map[string][]*model.Filter, err error)
- func (d *Dao) FavCoAppCache(c context.Context, mid int64) (res []*model.Contest, total int, err error)
- func (d *Dao) FavCoCache(c context.Context, mid int64) (res []*model.Contest, total int, err error)
- func (d *Dao) FilterCale(c context.Context, p *model.ParamFilter) (rs map[string]int64, err error)
- func (d *Dao) FilterMatch(c context.Context, p *model.ParamFilter) (rs *model.FilterES, err error)
- func (d *Dao) FilterVideo(c context.Context, p *model.ParamFilter) (rs *model.FilterES, err error)
- func (d *Dao) Games(c context.Context) (res []*model.Filter, err error)
- func (d *Dao) GetActKnockoutCache(c context.Context, mdID int64) (res [][]*model.TreeList, err error)
- func (d *Dao) GetActModuleCache(c context.Context, mmid int64) (res []*arcmdl.Arc, err error)
- func (d *Dao) GetActPageCache(c context.Context, id int64) (act *model.ActivePage, err error)
- func (d *Dao) GetActPointsCache(c context.Context, aid, mdID, ps int64) (res []*model.Contest, total int, err error)
- func (d *Dao) GetActTopCache(c context.Context, aid, ps int64) (res []*model.Contest, total int, err error)
- func (d *Dao) GetCRecent(c context.Context, param *model.ParamCDRecent) (data []*model.Contest, err error)
- func (d *Dao) GetCSingleData(c context.Context, id int64) (data *model.ContestDataPage, err error)
- func (d *Dao) GetMActCache(c context.Context, aid int64) (res *model.Active, err error)
- func (d *Dao) KDetails(c context.Context) (res []*model.ActiveDetail, err error)
- func (d *Dao) Leida(c context.Context, url string) (rs []byte, err error)
- func (d *Dao) Matchs(c context.Context) (res []*model.Filter, err error)
- func (d *Dao) Module(c context.Context, mmid int64) (mod *model.Module, err error)
- func (d *Dao) Modules(c context.Context, aid int64) (mods []*model.Module, err error)
- func (d *Dao) PActDetail(c context.Context, id int64) (mod *model.ActiveDetail, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) RawEpContests(c context.Context, cids []int64) (res map[int64]*model.Contest, err error)
- func (d *Dao) RawEpSeasons(c context.Context, sids []int64) (res map[int64]*model.Season, err error)
- func (d *Dao) RawEpTeams(c context.Context, tids []int64) (res map[int64]*model.Team, err error)
- func (d *Dao) Search(c context.Context, mid int64, p *model.ParamSearch, buvid string) (rs *model.SearchEsp, err error)
- func (d *Dao) SearchContest(c context.Context, p *model.ParamContest) (rs []*model.Contest, total int, err error)
- func (d *Dao) SearchContestQuery(c context.Context, p *model.ParamContest) (rs []*model.Contest, total int, err error)
- func (d *Dao) SearchFav(c context.Context, mid int64, p *model.ParamFav) (rs []int64, total int, err error)
- func (d *Dao) SearchVideo(c context.Context, p *model.ParamVideo) (rs []*model.SearchVideo, total int, err error)
- func (d *Dao) Season(c context.Context) (res []*model.Season, err error)
- func (d *Dao) SeasonAll(c context.Context) (res []*model.Filter, err error)
- func (d *Dao) SeasonCache(c context.Context, start, end int) (res []*model.Season, total int, err error)
- func (d *Dao) SeasonFav(c context.Context, mid int64, p *model.ParamSeason) (rs []*model.ElaSub, total int, err error)
- func (d *Dao) SeasonMCache(c context.Context, start, end int) (res []*model.Season, total int, err error)
- func (d *Dao) SetAppFavCoCache(c context.Context, mid int64, contests []*model.Contest, total int) (err error)
- func (d *Dao) SetCalendarCache(c context.Context, p *model.ParamFilter, cales []*model.Calendar) (err error)
- func (d *Dao) SetContestCache(c context.Context, ps int, contests []*model.Contest, total int) (err error)
- func (d *Dao) SetFMatCache(c context.Context, fs map[string][]*model.Filter) (err error)
- func (d *Dao) SetFVideoCache(c context.Context, fs map[string][]*model.Filter) (err error)
- func (d *Dao) SetFavCoCache(c context.Context, mid int64, contests []*model.Contest, total int) (err error)
- func (d *Dao) SetSeasonCache(c context.Context, seasons []*model.Season, total int) (err error)
- func (d *Dao) SetSeasonMCache(c context.Context, seasons []*model.Season, total int) (err error)
- func (d *Dao) SetVideoCache(c context.Context, ps int, videos []*arcmdl.Arc, total int) (err error)
- func (d *Dao) StimeFav(c context.Context, mid int64, p *model.ParamSeason) (rs []*model.ElaSub, total int, err error)
- func (d *Dao) Tags(c context.Context) (res []*model.Filter, err error)
- func (d *Dao) Teams(c context.Context) (res []*model.Filter, err error)
- func (d *Dao) ThirdGet(c context.Context, url string) (res []byte, err error)
- func (d *Dao) Trees(c context.Context, madID int64) (mods []*model.Tree, err error)
- func (d *Dao) VideoCache(c context.Context, ps int) (res []*arcmdl.Arc, total int, err error)
- func (d *Dao) Years(c context.Context) (res []*model.Filter, 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 struct.
func (*Dao) AddActKnockCacheTime ¶
AddActKnockCacheTime add act knockout cache value time
func (*Dao) AddActKnockoutCache ¶
func (d *Dao) AddActKnockoutCache(c context.Context, mdID int64, knock [][]*model.TreeList) (err error)
AddActKnockoutCache add act knockout cache value
func (*Dao) AddActModuleCache ¶
AddActModuleCache add act first page cache
func (*Dao) AddActPageCache ¶
AddActPageCache add act first page value
func (*Dao) AddActPointsCache ¶
func (d *Dao) AddActPointsCache(c context.Context, aid, mdID, ps int64, points []*model.Contest, total int) (err error)
AddActPointsCache add act point data cache
func (*Dao) AddActTopCache ¶
func (d *Dao) AddActTopCache(c context.Context, aid, ps int64, tops []*model.Contest, total int) (err error)
AddActTopCache add act top cache
func (*Dao) AddCRecent ¶
func (d *Dao) AddCRecent(c context.Context, param *model.ParamCDRecent, data []*model.Contest) (err error)
AddCRecent add contest recent data
func (*Dao) AddCSingleData ¶
AddCSingleData add act first page value
func (*Dao) AddCacheEpContests ¶
AddCacheEpContests .
func (*Dao) AddCacheEpSeasons ¶
AddCacheEpSeasons .
func (*Dao) AddCacheEpTeams ¶
AddCacheEpTeams .
func (*Dao) AddMActCache ¶
AddMActCache add act cache value
func (*Dao) CacheEpContests ¶
func (d *Dao) CacheEpContests(c context.Context, ids []int64) (res map[int64]*model.Contest, err error)
CacheEpContests .
func (*Dao) CacheEpSeasons ¶
func (d *Dao) CacheEpSeasons(c context.Context, ids []int64) (res map[int64]*model.Season, err error)
CacheEpSeasons .
func (*Dao) CacheEpTeams ¶
CacheEpTeams .
func (*Dao) CalendarCache ¶
func (d *Dao) CalendarCache(c context.Context, p *model.ParamFilter) (res []*model.Calendar, err error)
CalendarCache get all calendar from cache.
func (*Dao) ContestCache ¶
ContestCache get all contest from cache.
func (*Dao) ContestData ¶
ContestData get contest by id.
func (*Dao) ContestDatas ¶
ContestDatas contest datas.
func (*Dao) ContestRecent ¶
func (d *Dao) ContestRecent(c context.Context, homeid, awayid, contestid, ps int64) (res []*model.Contest, err error)
ContestRecent get recent contest
func (*Dao) DelFavCoCache ¶
DelFavCoCache delete fav contests cache.
func (*Dao) EpContests ¶
EpContests get data from cache if miss will call source method, then add to cache.
func (*Dao) EpSeasons ¶
EpSeasons get data from cache if miss will call source method, then add to cache.
func (*Dao) EpTeams ¶
EpTeams get data from cache if miss will call source method, then add to cache.
func (*Dao) FVideoCache ¶
FVideoCache get filter video from cache.
func (*Dao) FavCoAppCache ¶
func (d *Dao) FavCoAppCache(c context.Context, mid int64) (res []*model.Contest, total int, err error)
FavCoAppCache get fav contest from cache.
func (*Dao) FavCoCache ¶
FavCoCache get fav contest from cache.
func (*Dao) FilterCale ¶
FilterCale Calendar filter.
func (*Dao) FilterMatch ¶
FilterMatch match filter.
func (*Dao) FilterVideo ¶
FilterVideo video filter.
func (*Dao) GetActKnockoutCache ¶
func (d *Dao) GetActKnockoutCache(c context.Context, mdID int64) (res [][]*model.TreeList, err error)
GetActKnockoutCache add act knockout cache value
func (*Dao) GetActModuleCache ¶
GetActModuleCache get module from cache.
func (*Dao) GetActPageCache ¶
GetActPageCache get act from cache.
func (*Dao) GetActPointsCache ¶
func (d *Dao) GetActPointsCache(c context.Context, aid, mdID, ps int64) (res []*model.Contest, total int, err error)
GetActPointsCache get act point value
func (*Dao) GetActTopCache ¶
func (d *Dao) GetActTopCache(c context.Context, aid, ps int64) (res []*model.Contest, total int, err error)
GetActTopCache get act top value cache
func (*Dao) GetCRecent ¶
func (d *Dao) GetCRecent(c context.Context, param *model.ParamCDRecent) (data []*model.Contest, err error)
GetCRecent get contest recent data
func (*Dao) GetCSingleData ¶
GetCSingleData get contest single data
func (*Dao) GetMActCache ¶
GetMActCache get act cache value
func (*Dao) PActDetail ¶
PActDetail poin match detail
func (*Dao) RawEpContests ¶
func (d *Dao) RawEpContests(c context.Context, cids []int64) (res map[int64]*model.Contest, err error)
RawEpContests get contests by ids.
func (*Dao) RawEpSeasons ¶
func (d *Dao) RawEpSeasons(c context.Context, sids []int64) (res map[int64]*model.Season, err error)
RawEpSeasons get seasons by ids.
func (*Dao) RawEpTeams ¶
RawEpTeams get seasons by ids.
func (*Dao) Search ¶
func (d *Dao) Search(c context.Context, mid int64, p *model.ParamSearch, buvid string) (rs *model.SearchEsp, err error)
Search search api.
func (*Dao) SearchContest ¶
func (d *Dao) SearchContest(c context.Context, p *model.ParamContest) (rs []*model.Contest, total int, err error)
SearchContest search contest.
func (*Dao) SearchContestQuery ¶
func (d *Dao) SearchContestQuery(c context.Context, p *model.ParamContest) (rs []*model.Contest, total int, err error)
SearchContestQuery search contest.
func (*Dao) SearchFav ¶
func (d *Dao) SearchFav(c context.Context, mid int64, p *model.ParamFav) (rs []int64, total int, err error)
SearchFav search app fav contest.
func (*Dao) SearchVideo ¶
func (d *Dao) SearchVideo(c context.Context, p *model.ParamVideo) (rs []*model.SearchVideo, total int, err error)
SearchVideo search video.
func (*Dao) SeasonCache ¶
func (d *Dao) SeasonCache(c context.Context, start, end int) (res []*model.Season, total int, err error)
SeasonCache get season list from cache.
func (*Dao) SeasonFav ¶
func (d *Dao) SeasonFav(c context.Context, mid int64, p *model.ParamSeason) (rs []*model.ElaSub, total int, err error)
SeasonFav fav season list.
func (*Dao) SeasonMCache ¶
func (d *Dao) SeasonMCache(c context.Context, start, end int) (res []*model.Season, total int, err error)
SeasonMCache get season list from cache.
func (*Dao) SetAppFavCoCache ¶
func (d *Dao) SetAppFavCoCache(c context.Context, mid int64, contests []*model.Contest, total int) (err error)
SetAppFavCoCache set fav contest to cache.
func (*Dao) SetCalendarCache ¶
func (d *Dao) SetCalendarCache(c context.Context, p *model.ParamFilter, cales []*model.Calendar) (err error)
SetCalendarCache set all calendar to cache.
func (*Dao) SetContestCache ¶
func (d *Dao) SetContestCache(c context.Context, ps int, contests []*model.Contest, total int) (err error)
SetContestCache set all contest to cache.
func (*Dao) SetFMatCache ¶
SetFMatCache set filter match to cache.
func (*Dao) SetFVideoCache ¶
SetFVideoCache set filter match to cache.
func (*Dao) SetFavCoCache ¶
func (d *Dao) SetFavCoCache(c context.Context, mid int64, contests []*model.Contest, total int) (err error)
SetFavCoCache set fav contest to cache.
func (*Dao) SetSeasonCache ¶
SetSeasonCache set season list cache.
func (*Dao) SetSeasonMCache ¶
SetSeasonMCache set season list cache.
func (*Dao) SetVideoCache ¶
SetVideoCache set all contest to cache.
func (*Dao) StimeFav ¶
func (d *Dao) StimeFav(c context.Context, mid int64, p *model.ParamSeason) (rs []*model.ElaSub, total int, err error)
StimeFav fav contest stime list.
func (*Dao) VideoCache ¶
VideoCache get all video from cache.