gorpc

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: 4 Imported by: 0

Documentation

Index

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 New2

func New2(c *rpc.ClientConfig) (s *Service2)

New2 new a archive rpc client.

func (*Service2) ArcCache2

func (s *Service2) ArcCache2(c context.Context, arg *model.ArgCache2) (err error)

ArcCache2 add/update archive cache

func (*Service2) ArcFieldCache2

func (s *Service2) ArcFieldCache2(c context.Context, arg *model.ArgFieldCache2) (err error)

ArcFieldCache2 update archive field cache

func (*Service2) Archive3

func (s *Service2) Archive3(c context.Context, arg *model.ArgAid2) (res *api.Arc, err error)

Archive3 Get receive aid, then init archive info.

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

func (s *Service2) Click3(c context.Context, arg *model.ArgAid2) (res *api.Click, err error)

Click3 get archive click

func (*Service2) DelVideo2

func (s *Service2) DelVideo2(c context.Context, arg *model.ArgVideo2) (err error)

DelVideo2 delete video cache by aid & cid

func (*Service2) Description2

func (s *Service2) Description2(c context.Context, arg *model.ArgAid) (des string, err error)

Description2 add share.

func (*Service2) MaxAID

func (s *Service2) MaxAID(c context.Context) (id int64, err error)

MaxAID get max aid

func (*Service2) Page3

func (s *Service2) Page3(c context.Context, arg *model.ArgAid2) (res []*api.Page, err error)

Page3 get videos by aid

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

func (s *Service2) Recommend3(c context.Context, arg *model.ArgAid2) (res []*api.Arc, err error)

Recommend3 from archive_recommend by aid

func (*Service2) SetStat2

func (s *Service2) SetStat2(c context.Context, arg *api.Stat) (err error)

SetStat2 set all stat info.

func (*Service2) SetStatCache2

func (s *Service2) SetStatCache2(c context.Context, arg *model.ArgStat2) (err error)

SetStatCache2 up stat.

func (*Service2) Stat3

func (s *Service2) Stat3(c context.Context, arg *model.ArgAid2) (res *api.Stat, err error)

Stat3 get archive 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) Types2

func (s *Service2) Types2(c context.Context) (res map[int16]*model.ArcType, err error)

Types2 get all archive types

func (*Service2) UpArcs3

func (s *Service2) UpArcs3(c context.Context, arg *model.ArgUpArcs2) (res []*api.Arc, err error)

UpArcs3 get archives of upper.

func (*Service2) UpCount2

func (s *Service2) UpCount2(c context.Context, arg *model.ArgUpCount2) (count int, err error)

UpCount2 up count2

func (*Service2) UpVideo2

func (s *Service2) UpVideo2(c context.Context, arg *model.ArgVideo2) (err error)

UpVideo2 update video cache by aid & cid

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

func (s *Service2) Video3(c context.Context, arg *model.ArgVideo2) (res *api.Page, err error)

Video3 get video by aid & cid.

func (*Service2) Videoshot2

func (s *Service2) Videoshot2(c context.Context, arg *model.ArgCid2) (res *model.Videoshot, err error)

Videoshot2 get videoshot.

func (*Service2) View3

func (s *Service2) View3(c context.Context, arg *model.ArgAid2) (res *model.View3, err error)

View3 get archive info and view pages.

func (*Service2) Views3

func (s *Service2) Views3(c context.Context, arg *model.ArgAids2) (res map[int64]*model.View3, err error)

Views3 get archives info and view pages.

Jump to

Keyboard shortcuts

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