Documentation ¶
Index ¶
- type Service2
- func (s *Service2) ArcCache2(c context.Context, arg *model.ArgCache2) (err error)
- func (s *Service2) ArcFieldCache2(c context.Context, arg *model.ArgFieldCache2) (err error)
- func (s *Service2) Archive3(c context.Context, arg *model.ArgAid2) (res *api.Arc, err error)
- func (s *Service2) Archives3(c context.Context, arg *model.ArgAids2) (res map[int64]*api.Arc, err error)
- func (s *Service2) ArchivesWithPlayer(c context.Context, arg *model.ArgPlayer) (res map[int64]*model.ArchiveWithPlayer, err error)
- func (s *Service2) Click3(c context.Context, arg *model.ArgAid2) (res *api.Click, err error)
- func (s *Service2) DelVideo2(c context.Context, arg *model.ArgVideo2) (err error)
- func (s *Service2) Description2(c context.Context, arg *model.ArgAid) (des string, err error)
- func (s *Service2) MaxAID(c context.Context) (id int64, err error)
- func (s *Service2) Page3(c context.Context, arg *model.ArgAid2) (res []*api.Page, err error)
- func (s *Service2) RankAllArcs3(c context.Context, arg *model.ArgRankAll2) (res *model.RankArchives3, err error)
- func (s *Service2) RankArcs3(c context.Context, arg *model.ArgRank2) (res *model.RankArchives3, err error)
- func (s *Service2) RankTopArcs3(c context.Context, arg *model.ArgRankTop2) (res []*api.Arc, err error)
- func (s *Service2) RanksArcs3(c context.Context, arg *model.ArgRanks2) (res map[int16]*model.RankArchives3, err error)
- func (s *Service2) RanksTopCount2(c context.Context, arg *model.ArgRankTopsCount2) (res map[int16]int, err error)
- func (s *Service2) Recommend3(c context.Context, arg *model.ArgAid2) (res []*api.Arc, err error)
- func (s *Service2) SetStat2(c context.Context, arg *api.Stat) (err error)
- func (s *Service2) SetStatCache2(c context.Context, arg *model.ArgStat2) (err error)
- func (s *Service2) Stat3(c context.Context, arg *model.ArgAid2) (res *api.Stat, err error)
- func (s *Service2) Stats3(c context.Context, arg *model.ArgAids2) (res map[int64]*api.Stat, err error)
- func (s *Service2) Types2(c context.Context) (res map[int16]*model.ArcType, err error)
- func (s *Service2) UpArcs3(c context.Context, arg *model.ArgUpArcs2) (res []*api.Arc, err error)
- func (s *Service2) UpCount2(c context.Context, arg *model.ArgUpCount2) (count int, err error)
- func (s *Service2) UpVideo2(c context.Context, arg *model.ArgVideo2) (err error)
- func (s *Service2) UpsArcs3(c context.Context, arg *model.ArgUpsArcs2) (res map[int64][]*api.Arc, err error)
- func (s *Service2) UpsPassed2(c context.Context, arg *model.ArgUpsArcs2) (res map[int64][]*model.AidPubTime, err error)
- func (s *Service2) Video3(c context.Context, arg *model.ArgVideo2) (res *api.Page, err error)
- func (s *Service2) Videoshot2(c context.Context, arg *model.ArgCid2) (res *model.Videoshot, err error)
- func (s *Service2) View3(c context.Context, arg *model.ArgAid2) (res *model.View3, err error)
- func (s *Service2) Views3(c context.Context, arg *model.ArgAids2) (res map[int64]*model.View3, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service2 ¶
type Service2 struct {
// contains filtered or unexported fields
}
Service2 is archive rpc client.
func (*Service2) ArcFieldCache2 ¶
ArcFieldCache2 update archive field cache
func (*Service2) Archives3 ¶
func (s *Service2) Archives3(c context.Context, arg *model.ArgAids2) (res map[int64]*api.Arc, err error)
Archives3 receive aids, then init archives info.
func (*Service2) ArchivesWithPlayer ¶
func (s *Service2) ArchivesWithPlayer(c context.Context, arg *model.ArgPlayer) (res map[int64]*model.ArchiveWithPlayer, err error)
ArchivesWithPlayer archives witch player
func (*Service2) Description2 ¶
Description2 add share.
func (*Service2) RankAllArcs3 ¶
func (s *Service2) RankAllArcs3(c context.Context, arg *model.ArgRankAll2) (res *model.RankArchives3, err error)
RankAllArcs3 get left 7 days all archives
func (*Service2) RankArcs3 ¶
func (s *Service2) RankArcs3(c context.Context, arg *model.ArgRank2) (res *model.RankArchives3, err error)
RankArcs3 get rank archives by type.
func (*Service2) RankTopArcs3 ¶
func (s *Service2) RankTopArcs3(c context.Context, arg *model.ArgRankTop2) (res []*api.Arc, err error)
RankTopArcs3 get top region archives by reid
func (*Service2) RanksArcs3 ¶
func (s *Service2) RanksArcs3(c context.Context, arg *model.ArgRanks2) (res map[int16]*model.RankArchives3, err error)
RanksArcs3 get rank archives by types.
func (*Service2) RanksTopCount2 ¶
func (s *Service2) RanksTopCount2(c context.Context, arg *model.ArgRankTopsCount2) (res map[int16]int, err error)
RanksTopCount2 get top region count.
func (*Service2) Recommend3 ¶
Recommend3 from archive_recommend by aid
func (*Service2) SetStatCache2 ¶
SetStatCache2 up stat.
func (*Service2) Stats3 ¶
func (s *Service2) Stats3(c context.Context, arg *model.ArgAids2) (res map[int64]*api.Stat, err error)
Stats3 get archive stat
func (*Service2) UpsArcs3 ¶
func (s *Service2) UpsArcs3(c context.Context, arg *model.ArgUpsArcs2) (res map[int64][]*api.Arc, err error)
UpsArcs3 get archives of upper.
func (*Service2) UpsPassed2 ¶
func (s *Service2) UpsPassed2(c context.Context, arg *model.ArgUpsArcs2) (res map[int64][]*model.AidPubTime, err error)
UpsPassed2 get UpsPassed aid and ptime
func (*Service2) Videoshot2 ¶
func (s *Service2) Videoshot2(c context.Context, arg *model.ArgCid2) (res *model.Videoshot, err error)
Videoshot2 get videoshot.
Click to show internal directories.
Click to hide internal directories.