Documentation ¶
Index ¶
- func New(c *conf.Config, s *service.Service) (svr *rpc.Server)
- type RPC
- func (r *RPC) ArcCache2(c context.Context, a *archive.ArgCache2, res *struct{}) (err error)
- func (r *RPC) ArcFieldCache2(c context.Context, a *archive.ArgFieldCache2, res *struct{}) (err error)
- func (r *RPC) Archive3(c context.Context, a *archive.ArgAid2, res *api.Arc) (err error)
- func (r *RPC) Archives3(c context.Context, a *archive.ArgAids2, res *map[int64]*api.Arc) (err error)
- func (r *RPC) ArchivesWithPlayer(c context.Context, a *archive.ArgPlayer, ...) (err error)
- func (r *RPC) Auth(c context.Context, arg *rpc.Auth, res *struct{}) (err error)
- func (r *RPC) Click3(c context.Context, a *archive.ArgAid2, res *api.Click) (err error)
- func (r *RPC) DelVideo2(c context.Context, a *archive.ArgVideo2, res *struct{}) (err error)
- func (r *RPC) Description2(c context.Context, a *archive.ArgAid, reDes *string) (err error)
- func (r *RPC) MaxAID(c context.Context, a *struct{}, res *int64) (err error)
- func (r *RPC) Page3(c context.Context, a *archive.ArgAid2, res *[]*api.Page) (err error)
- func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)
- func (r *RPC) RankAllArcs3(c context.Context, a *archive.ArgRankAll2, res *archive.RankArchives3) (err error)
- func (r *RPC) RankArcs3(c context.Context, a *archive.ArgRank2, res *archive.RankArchives3) (err error)
- func (r *RPC) RankTopArcs3(c context.Context, a *archive.ArgRankTop2, res *[]*api.Arc) (err error)
- func (r *RPC) RanksArcs3(c context.Context, a *archive.ArgRanks2, res *map[int16]*archive.RankArchives3) (err error)
- func (r *RPC) RanksTopCount2(c context.Context, a *archive.ArgRankTopsCount2, res *map[int16]int) (err error)
- func (r *RPC) Recommend3(c context.Context, a *archive.ArgAid2, res *[]*api.Arc) (err error)
- func (r *RPC) SetStat2(c context.Context, a *api.Stat, res *struct{}) (err error)
- func (r *RPC) Stat3(c context.Context, a *archive.ArgAid2, res *api.Stat) (err error)
- func (r *RPC) Stats3(c context.Context, a *archive.ArgAids2, res *map[int64]*api.Stat) (err error)
- func (r *RPC) Types2(c context.Context, a *struct{}, res *map[int16]*archive.ArcType) (err error)
- func (r *RPC) UpArcs3(c context.Context, a *archive.ArgUpArcs2, res *[]*api.Arc) (err error)
- func (r *RPC) UpCount2(c context.Context, a *archive.ArgUpCount2, count *int) (err error)
- func (r *RPC) UpVideo2(c context.Context, a *archive.ArgVideo2, res *struct{}) (err error)
- func (r *RPC) UpsArcs3(c context.Context, a *archive.ArgUpsArcs2, res *map[int64][]*api.Arc) (err error)
- func (r *RPC) UpsPassed2(c context.Context, a *archive.ArgUpsArcs2, ...) (err error)
- func (r *RPC) Video3(c context.Context, a *archive.ArgVideo2, res *api.Page) (err error)
- func (r *RPC) Videoshot2(c context.Context, a *archive.ArgCid2, res *archive.Videoshot) (err error)
- func (r *RPC) View3(c context.Context, a *archive.ArgAid2, av *archive.View3) (err error)
- func (r *RPC) Views3(c context.Context, a *archive.ArgAids2, res *map[int64]*archive.View3) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC rpc.
func (*RPC) ArcFieldCache2 ¶
func (r *RPC) ArcFieldCache2(c context.Context, a *archive.ArgFieldCache2, res *struct{}) (err error)
ArcFieldCache2 update archive by field changed.
func (*RPC) Archives3 ¶
func (r *RPC) Archives3(c context.Context, a *archive.ArgAids2, res *map[int64]*api.Arc) (err error)
Archives3 receive aids, then init archives info.
func (*RPC) ArchivesWithPlayer ¶
func (r *RPC) ArchivesWithPlayer(c context.Context, a *archive.ArgPlayer, res *map[int64]*archive.ArchiveWithPlayer) (err error)
ArchivesWithPlayer archives with player info
func (*RPC) Description2 ¶
Description2 get description by aid.
func (*RPC) RankAllArcs3 ¶
func (r *RPC) RankAllArcs3(c context.Context, a *archive.ArgRankAll2, res *archive.RankArchives3) (err error)
RankAllArcs3 left 7 days all Arcs
func (*RPC) RankArcs3 ¶
func (r *RPC) RankArcs3(c context.Context, a *archive.ArgRank2, res *archive.RankArchives3) (err error)
RankArcs3 Arcs by rid
func (*RPC) RankTopArcs3 ¶
RankTopArcs3 Arcs by reids
func (*RPC) RanksArcs3 ¶
func (r *RPC) RanksArcs3(c context.Context, a *archive.ArgRanks2, res *map[int16]*archive.RankArchives3) (err error)
RanksArcs3 Arcs by rids
func (*RPC) RanksTopCount2 ¶
func (r *RPC) RanksTopCount2(c context.Context, a *archive.ArgRankTopsCount2, res *map[int16]int) (err error)
RanksTopCount2 top region count.
func (*RPC) Recommend3 ¶
Recommend3 from archive_recommend by aid
func (*RPC) UpsArcs3 ¶
func (r *RPC) UpsArcs3(c context.Context, a *archive.ArgUpsArcs2, res *map[int64][]*api.Arc) (err error)
UpsArcs3 ups archives.
func (*RPC) UpsPassed2 ¶
func (r *RPC) UpsPassed2(c context.Context, a *archive.ArgUpsArcs2, res *map[int64][]*archive.AidPubTime) (err error)
UpsPassed2 ups pass aid and ptime
func (*RPC) Videoshot2 ¶
Videoshot2 get vidoshot info data.
Click to show internal directories.
Click to hide internal directories.