Documentation ¶
Index ¶
- type Service
- func (s *Service) AbTest(c context.Context, names, ipaddr string) (res map[string]*model.AbTest)
- func (s *Service) AssignmentAll(c context.Context) (ass []*model.Assignment)
- func (s *Service) Audit(c context.Context) map[string][]int
- func (s *Service) Banners(c context.Context, plat int8, build int, aid, mid int64, ...) (res *model.Banners)
- func (s *Service) Close()
- func (s *Service) Cmtbox(c context.Context, id int64) (re *model.Cmtbox, err error)
- func (s *Service) DefBanner(c context.Context) (defbanner *model.Assignment)
- func (s *Service) IndexIcon(c context.Context) (icons map[string][]*model.IndexIcon)
- func (s *Service) Monitor(c context.Context)
- func (s *Service) PasterAPP(c context.Context, plat, adType int8, aid, typeID, buvid string) (res *model.Paster, err error)
- func (s *Service) PasterCID(c context.Context) (res map[int64]int64, err error)
- func (s *Service) PasterPGC(c context.Context, plat, adType int8, sid string) (res *model.Paster, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) PlayerIcon(c context.Context) (re *model.PlayerIcon, err error)
- func (s *Service) RegionCard(c context.Context, plat int8, build int) (res *model.Head, err error)
- func (s *Service) Relate(ctx context.Context, req *pb.RelateRequest) (special *pb.SpecialReply, err error)
- func (s *Service) Resource(c context.Context, resID int) (res *model.Resource)
- func (s *Service) ResourceAll(c context.Context) (res []*model.Resource)
- func (s *Service) Resources(c context.Context, resIDs []int) (res map[int]*model.Resource)
- func (s *Service) SideBars(c context.Context) (res *model.SideBars)
- func (s *Service) UpdateAbTestCache(nabs []*model.AbTest)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // PasterAIDCache PasterAIDCache []map[int64]int64 // contains filtered or unexported fields }
Service define resource service
func (*Service) AssignmentAll ¶
func (s *Service) AssignmentAll(c context.Context) (ass []*model.Assignment)
AssignmentAll get all assignment
func (*Service) Banners ¶
func (s *Service) Banners(c context.Context, plat int8, build int, aid, mid int64, resIdsStr, channel, ip, buvid, network, mobiApp, device, openEvent, adExtra, version string, isAd bool) (res *model.Banners)
Banners get banners by plat, build channel, ip for app-feed.
func (*Service) DefBanner ¶
func (s *Service) DefBanner(c context.Context) (defbanner *model.Assignment)
DefBanner get defbanner config
func (*Service) PasterAPP ¶
func (s *Service) PasterAPP(c context.Context, plat, adType int8, aid, typeID, buvid string) (res *model.Paster, err error)
PasterAPP get paster for app nologin
func (*Service) PasterPGC ¶
func (s *Service) PasterPGC(c context.Context, plat, adType int8, sid string) (res *model.Paster, err error)
PasterPGC get paster for pgc
func (*Service) PlayerIcon ¶
PlayerIcon get player icon
func (*Service) RegionCard ¶
RegionCard get voice card.
func (*Service) Relate ¶
func (s *Service) Relate(ctx context.Context, req *pb.RelateRequest) (special *pb.SpecialReply, err error)
Relate Relate card grpc
func (*Service) ResourceAll ¶
ResourceAll get all resource
func (*Service) UpdateAbTestCache ¶
UpdateAbTestCache update abtest
Click to show internal directories.
Click to hide internal directories.