dao

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

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 New

func New(c *conf.Config) (d *Dao)

New new dao.

func (*Dao) ActDetail

func (d *Dao) ActDetail(c context.Context, aid int64) (actDetail []*model.ActiveDetail, err error)

ActDetail data module

func (*Dao) ActTeams

func (d *Dao) ActTeams(c context.Context, tids []int64) (res []*model.Team, err error)

ActTeams get teams by ids in

func (*Dao) Active

func (d *Dao) Active(c context.Context, aid int64) (mod *model.Active, err error)

Active matchs active

func (*Dao) AddActKnockCacheTime

func (d *Dao) AddActKnockCacheTime(c context.Context, mdID int64) (err error)

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

func (d *Dao) AddActModuleCache(c context.Context, mmid int64, module []*arcmdl.Arc) (err error)

AddActModuleCache add act first page cache

func (*Dao) AddActPageCache

func (d *Dao) AddActPageCache(c context.Context, aid int64, act *model.ActivePage) (err error)

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

func (d *Dao) AddCSingleData(c context.Context, id int64, act *model.ContestDataPage) (err error)

AddCSingleData add act first page value

func (*Dao) AddCacheEpContests

func (d *Dao) AddCacheEpContests(c context.Context, data map[int64]*model.Contest) (err error)

AddCacheEpContests .

func (*Dao) AddCacheEpSeasons

func (d *Dao) AddCacheEpSeasons(c context.Context, data map[int64]*model.Season) (err error)

AddCacheEpSeasons .

func (*Dao) AddCacheEpTeams

func (d *Dao) AddCacheEpTeams(c context.Context, data map[int64]*model.Team) (err error)

AddCacheEpTeams .

func (*Dao) AddMActCache

func (d *Dao) AddMActCache(c context.Context, aid int64, act *model.Active) (err error)

AddMActCache add act cache value

func (*Dao) AppSeason

func (d *Dao) AppSeason(c context.Context) (res []*model.Season, err error)

AppSeason season match list.

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

func (d *Dao) CacheEpTeams(c context.Context, ids []int64) (res map[int64]*model.Team, err error)

CacheEpTeams .

func (*Dao) Calendar

func (d *Dao) Calendar(c context.Context, stime, etime int64) (res []*model.Calendar, err error)

Calendar calendar count.

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) Contest

func (d *Dao) Contest(c context.Context, cid int64) (res *model.Contest, err error)

Contest get contest by id.

func (*Dao) ContestCache

func (d *Dao) ContestCache(c context.Context, ps int) (res []*model.Contest, total int, err error)

ContestCache get all contest from cache.

func (*Dao) ContestData

func (d *Dao) ContestData(c context.Context, cid int64) (res []*model.ContestsData, err error)

ContestData get contest by id.

func (*Dao) ContestDatas

func (d *Dao) ContestDatas(c context.Context) (res []*model.Contest, err error)

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

func (d *Dao) DelFavCoCache(c context.Context, mid int64) (err error)

DelFavCoCache delete fav contests cache.

func (*Dao) EpContests

func (d *Dao) EpContests(c context.Context, keys []int64) (res map[int64]*model.Contest, err error)

EpContests get data from cache if miss will call source method, then add to cache.

func (*Dao) EpSeasons

func (d *Dao) EpSeasons(c context.Context, keys []int64) (res map[int64]*model.Season, err error)

EpSeasons get data from cache if miss will call source method, then add to cache.

func (*Dao) EpTeams

func (d *Dao) EpTeams(c context.Context, keys []int64) (res map[int64]*model.Team, err error)

EpTeams get data from cache if miss will call source method, then add to cache.

func (*Dao) FMatCache

func (d *Dao) FMatCache(c context.Context) (res map[string][]*model.Filter, err error)

FMatCache get filter match from cache.

func (*Dao) FVideoCache

func (d *Dao) FVideoCache(c context.Context) (res map[string][]*model.Filter, err error)

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

func (d *Dao) FavCoCache(c context.Context, mid int64) (res []*model.Contest, total int, err error)

FavCoCache get fav contest from cache.

func (*Dao) FilterCale

func (d *Dao) FilterCale(c context.Context, p *model.ParamFilter) (rs map[string]int64, err error)

FilterCale Calendar filter.

func (*Dao) FilterMatch

func (d *Dao) FilterMatch(c context.Context, p *model.ParamFilter) (rs *model.FilterES, err error)

FilterMatch match filter.

func (*Dao) FilterVideo

func (d *Dao) FilterVideo(c context.Context, p *model.ParamFilter) (rs *model.FilterES, err error)

FilterVideo video filter.

func (*Dao) Games

func (d *Dao) Games(c context.Context) (res []*model.Filter, err error)

Games filter games.

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

func (d *Dao) GetActModuleCache(c context.Context, mmid int64) (res []*arcmdl.Arc, err error)

GetActModuleCache get module from cache.

func (*Dao) GetActPageCache

func (d *Dao) GetActPageCache(c context.Context, id int64) (act *model.ActivePage, err error)

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

func (d *Dao) GetCSingleData(c context.Context, id int64) (data *model.ContestDataPage, err error)

GetCSingleData get contest single data

func (*Dao) GetMActCache

func (d *Dao) GetMActCache(c context.Context, aid int64) (res *model.Active, err error)

GetMActCache get act cache value

func (*Dao) KDetails

func (d *Dao) KDetails(c context.Context) (res []*model.ActiveDetail, err error)

KDetails knockout detail

func (*Dao) Leida

func (d *Dao) Leida(c context.Context, url string) (rs []byte, err error)

Leida get leidata.

func (*Dao) Matchs

func (d *Dao) Matchs(c context.Context) (res []*model.Filter, err error)

Matchs filter matchs.

func (*Dao) Module

func (d *Dao) Module(c context.Context, mmid int64) (mod *model.Module, err error)

Module active module

func (*Dao) Modules

func (d *Dao) Modules(c context.Context, aid int64) (mods []*model.Module, err error)

Modules active module

func (*Dao) PActDetail

func (d *Dao) PActDetail(c context.Context, id int64) (mod *model.ActiveDetail, err error)

PActDetail poin match detail

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping ping dao

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

func (d *Dao) RawEpTeams(c context.Context, tids []int64) (res map[int64]*model.Team, err error)

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) Season

func (d *Dao) Season(c context.Context) (res []*model.Season, err error)

Season season list.

func (*Dao) SeasonAll

func (d *Dao) SeasonAll(c context.Context) (res []*model.Filter, err error)

SeasonAll all season list.

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

func (d *Dao) SetFMatCache(c context.Context, fs map[string][]*model.Filter) (err error)

SetFMatCache set filter match to cache.

func (*Dao) SetFVideoCache

func (d *Dao) SetFVideoCache(c context.Context, fs map[string][]*model.Filter) (err error)

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

func (d *Dao) SetSeasonCache(c context.Context, seasons []*model.Season, total int) (err error)

SetSeasonCache set season list cache.

func (*Dao) SetSeasonMCache

func (d *Dao) SetSeasonMCache(c context.Context, seasons []*model.Season, total int) (err error)

SetSeasonMCache set season list cache.

func (*Dao) SetVideoCache

func (d *Dao) SetVideoCache(c context.Context, ps int, videos []*arcmdl.Arc, total int) (err error)

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) Tags

func (d *Dao) Tags(c context.Context) (res []*model.Filter, err error)

Tags filter Tags.

func (*Dao) Teams

func (d *Dao) Teams(c context.Context) (res []*model.Filter, err error)

Teams filter teams.

func (*Dao) ThirdGet

func (d *Dao) ThirdGet(c context.Context, url string) (res []byte, err error)

ThirdGet get.

func (*Dao) Trees

func (d *Dao) Trees(c context.Context, madID int64) (mods []*model.Tree, err error)

Trees match tree

func (*Dao) VideoCache

func (d *Dao) VideoCache(c context.Context, ps int) (res []*arcmdl.Arc, total int, err error)

VideoCache get all video from cache.

func (*Dao) Years

func (d *Dao) Years(c context.Context) (res []*model.Filter, err error)

Years filter years.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL