Documentation
¶
Index ¶
- type Service
- func (s *Service) AddRegionArc(c context.Context, aid int64) (err error)
- func (s *Service) AddRegionArcs(c context.Context, rid int16) (err error)
- func (s *Service) AddUpperPassedCache(c context.Context, aid int64) (err error)
- func (s *Service) AllTypes(c context.Context) (types map[int16]*archive.ArcType)
- func (s *Service) Archive3(c context.Context, aid int64) (a *api.Arc, err error)
- func (s *Service) Archives3(c context.Context, aids []int64) (as map[int64]*api.Arc, err error)
- func (s *Service) ArchivesWithPlayer(c context.Context, arg *archive.ArgPlayer, showPGCPlayurl bool) (ap map[int64]*archive.ArchiveWithPlayer, err error)
- func (s *Service) CacheUpdate(c context.Context, aid int64, tp string, oldMid int64) (err error)
- func (s *Service) Click3(c context.Context, aid int64) (clk *api.Click, err error)
- func (s *Service) Close()
- func (s *Service) DelRegionArc(c context.Context, aid int64, rid int16) (err error)
- func (s *Service) DelUpperPassedCache(c context.Context, aid, mid int64) (err error)
- func (s *Service) DelVideo(c context.Context, aid, cid int64) (err error)
- func (s *Service) Description(c context.Context, aid int64) (des string, err error)
- func (s *Service) FieldCacheUpdate(c context.Context, aid int64, oldType, nwType int16) (err error)
- func (s *Service) MaxAID(c context.Context) (id int64, err error)
- func (s *Service) Page3(c context.Context, aid int64) (ps []*api.Page, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) RegionAllArcs3(c context.Context, pn, ps int) (as *archive.RankArchives3, err error)
- func (s *Service) RegionArcs3(c context.Context, rid int16, pn, ps int) (as []*api.Arc, count int, err error)
- func (s *Service) RegionOriginArcs3(c context.Context, rid int16, pn, ps int) (as []*api.Arc, count int, err error)
- func (s *Service) RegionTopArcs3(c context.Context, reid int16, pn, ps int) (as []*api.Arc, err error)
- func (s *Service) RegionTopCount(c context.Context, reids []int16) (res map[int16]int, err error)
- func (s *Service) SetStat(c context.Context, st *api.Stat) (err error)
- func (s *Service) Stat3(c context.Context, aid int64) (st *api.Stat, err error)
- func (s *Service) Stats3(c context.Context, aids []int64) (stm map[int64]*api.Stat, err error)
- func (s *Service) UpVideo(c context.Context, aid, cid int64) (err error)
- func (s *Service) UpperCache(c context.Context, mid int64, action string) (err error)
- func (s *Service) UpperCount(c context.Context, mid int64) (count int, err error)
- func (s *Service) UpperPassed3(c context.Context, mid int64, pn, ps int) (as []*api.Arc, err error)
- func (s *Service) UpperReommend(c context.Context, aid int64) (as []*api.Arc, err error)
- func (s *Service) UppersAidPubTime(c context.Context, mids []int64, pn, ps int) (mas map[int64][]*archive.AidPubTime, err error)
- func (s *Service) UppersCount(c context.Context, mids []int64) (uc map[int64]int, err error)
- func (s *Service) UppersPassed3(c context.Context, mids []int64, pn, ps int) (mas map[int64][]*api.Arc, err error)
- func (s *Service) Video3(c context.Context, aid, cid int64) (video *api.Page, err error)
- func (s *Service) Videoshot(c context.Context, aid, cid int64) (shot *archive.Videoshot, err error)
- func (s *Service) View3(c context.Context, aid int64) (v *api.ViewReply, err error)
- func (s *Service) Views3(c context.Context, aids []int64) (vm map[int64]*api.ViewReply, 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 is service.
func (*Service) AddRegionArc ¶
AddRegionArc add a archive cache by aid.
func (*Service) AddRegionArcs ¶
AddRegionArcs load region arcs into redis.
func (*Service) AddUpperPassedCache ¶
AddUpperPassedCache add up passed archive cache.
func (*Service) ArchivesWithPlayer ¶
func (s *Service) ArchivesWithPlayer(c context.Context, arg *archive.ArgPlayer, showPGCPlayurl bool) (ap map[int64]*archive.ArchiveWithPlayer, err error)
ArchivesWithPlayer with player
func (*Service) CacheUpdate ¶
CacheUpdate job update/del/add archive cache
func (*Service) DelRegionArc ¶
DelRegionArc delete a archive cache by aid.
func (*Service) DelUpperPassedCache ¶
DelUpperPassedCache delete up passed archive cache.
func (*Service) Description ¶
Description update page by aid & cid
func (*Service) FieldCacheUpdate ¶
FieldCacheUpdate job update field cache
func (*Service) RegionAllArcs3 ¶
func (s *Service) RegionAllArcs3(c context.Context, pn, ps int) (as *archive.RankArchives3, err error)
RegionAllArcs3 get left 7 days all region arcs
func (*Service) RegionArcs3 ¶
func (s *Service) RegionArcs3(c context.Context, rid int16, pn, ps int) (as []*api.Arc, count int, err error)
RegionArcs3 region archives.
func (*Service) RegionOriginArcs3 ¶
func (s *Service) RegionOriginArcs3(c context.Context, rid int16, pn, ps int) (as []*api.Arc, count int, err error)
RegionOriginArcs3 region origin archives.
func (*Service) RegionTopArcs3 ¶
func (s *Service) RegionTopArcs3(c context.Context, reid int16, pn, ps int) (as []*api.Arc, err error)
RegionTopArcs3 top region archives order by pubtime.
func (*Service) RegionTopCount ¶
RegionTopCount top region count when one day.
func (*Service) UpperCache ¶
UpperCache update upper cache.
func (*Service) UpperCount ¶
UpperCount upper count.
func (*Service) UpperPassed3 ¶
UpperPassed3 upper passed.
func (*Service) UpperReommend ¶
UpperReommend from archive_recommend by aid
func (*Service) UppersAidPubTime ¶
func (s *Service) UppersAidPubTime(c context.Context, mids []int64, pn, ps int) (mas map[int64][]*archive.AidPubTime, err error)
UppersAidPubTime get aid and pime by mids
func (*Service) UppersCount ¶
UppersCount uppers count
func (*Service) UppersPassed3 ¶
func (s *Service) UppersPassed3(c context.Context, mids []int64, pn, ps int) (mas map[int64][]*api.Arc, err error)
UppersPassed3 get archives by mids.