Documentation ¶
Index ¶
- type Service
- func (s *Service) AdIsPost() int
- func (s *Service) Audit(c context.Context, mobiApp string, plat int8, build, rid int, isShow bool) (res *region.Show, ok bool)
- func (s *Service) AuditChild(c context.Context, mobiApp, order string, plat int8, build, rid, tid int) (res *region.Show, ok bool)
- func (s *Service) AuditChildList(c context.Context, mobiApp, order string, plat int8, ...) (res []*region.ShowItem, ok bool)
- func (s *Service) ChildListShow(c context.Context, plat int8, rid, tid, pn, ps, build int, mid int64, ...) (res []*region.ShowItem)
- func (s *Service) ChildShow(c context.Context, plat int8, mid int64, rid, tid, build int, ...) (res *region.Show)
- func (s *Service) Close()
- func (s *Service) CpmAll() int
- func (s *Service) CpmMid() []int
- func (s *Service) CpmNum() int
- func (s *Service) Dynamic(c context.Context, plat int8, rid, build int, mid int64, ...) (res *region.Show)
- func (s *Service) DynamicChild(c context.Context, plat int8, rid, tid, build int, mid int64, mobiApp string, ...) (res *region.Show)
- func (s *Service) DynamicList(c context.Context, plat int8, rid int, pull bool, ctime, mid int64, ...) (res *region.Show)
- func (s *Service) DynamicListChild(c context.Context, plat int8, rid, tid, build int, pull bool, ctime, mid int64, ...) (res *region.Show)
- func (s *Service) NewRegionList(c context.Context, plat int8, build int, ver, mobiApp, device, language string) (res []*region.Region, version string, err error)
- func (s *Service) Regions(c context.Context, plat int8, build int, ver, mobiApp, device, language string) (rs []*region.Region, version string, err error)
- func (s *Service) RegionsList(c context.Context, plat int8, build int, ...) (rs []*region.Region, version string, err error)
- func (s *Service) SetAdIsPost(isPost bool)
- func (s *Service) SetCpmAll(isAll bool)
- func (s *Service) SetCpmMid(mid int64)
- func (s *Service) SetCpmNum(num int)
- func (s *Service) Show(c context.Context, plat int8, rid, build int, mid int64, ...) (res *region.Show)
- func (s *Service) ShowDynamic(c context.Context, plat int8, build, rid, pn, ps int) (res []*region.ShowItem)
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 region service.
func (*Service) Audit ¶
func (s *Service) Audit(c context.Context, mobiApp string, plat int8, build, rid int, isShow bool) (res *region.Show, ok bool)
Audit check audit plat and ip, then return audit data.
func (*Service) AuditChild ¶
func (s *Service) AuditChild(c context.Context, mobiApp, order string, plat int8, build, rid, tid int) (res *region.Show, ok bool)
AuditChild check audit plat and ip, then return audit data.
func (*Service) AuditChildList ¶
func (s *Service) AuditChildList(c context.Context, mobiApp, order string, plat int8, build, rid, tid, pn, ps int) (res []*region.ShowItem, ok bool)
AuditChildList check audit plat and ip, then return audit data.
func (*Service) ChildListShow ¶
func (s *Service) ChildListShow(c context.Context, plat int8, rid, tid, pn, ps, build int, mid int64, order, platform, mobiApp, device string) (res []*region.ShowItem)
ChildListShow region childList show
func (*Service) ChildShow ¶
func (s *Service) ChildShow(c context.Context, plat int8, mid int64, rid, tid, build int, channel, mobiApp string, now time.Time) (res *region.Show)
ChildShow region child show
func (*Service) Dynamic ¶
func (s *Service) Dynamic(c context.Context, plat int8, rid, build int, mid int64, channel, buvid, network, mobiApp, device, adExtra string, now time.Time) (res *region.Show)
Dynamic region dynamic
func (*Service) DynamicChild ¶
func (s *Service) DynamicChild(c context.Context, plat int8, rid, tid, build int, mid int64, mobiApp string, now time.Time) (res *region.Show)
DynamicChild region show dynamic
func (*Service) DynamicList ¶
func (s *Service) DynamicList(c context.Context, plat int8, rid int, pull bool, ctime, mid int64, now time.Time) (res *region.Show)
DynamicList show dynamic list
func (*Service) DynamicListChild ¶
func (s *Service) DynamicListChild(c context.Context, plat int8, rid, tid, build int, pull bool, ctime, mid int64, now time.Time) (res *region.Show)
DynamicListChild dynamic childList show
func (*Service) NewRegionList ¶
func (s *Service) NewRegionList(c context.Context, plat int8, build int, ver, mobiApp, device, language string) (res []*region.Region, version string, err error)
NewRegionList get region from cache.
func (*Service) Regions ¶
func (s *Service) Regions(c context.Context, plat int8, build int, ver, mobiApp, device, language string) (rs []*region.Region, version string, err error)
Regions get regions.
func (*Service) RegionsList ¶
func (s *Service) RegionsList(c context.Context, plat int8, build int, ver, mobiApp, device, language, entrance string) (rs []*region.Region, version string, err error)
Regions get regions.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.