region

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

Documentation

Index

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 New

func New(c *conf.Config) (s *Service)

New new a region service.

func (*Service) AdIsPost

func (s *Service) AdIsPost() int

IsPost Get or Post

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

func (s *Service) Close()

Close dao

func (*Service) CpmAll

func (s *Service) CpmAll() int

GetCpm All

func (*Service) CpmMid

func (s *Service) CpmMid() []int

GetCpm percentage

func (*Service) CpmNum

func (s *Service) CpmNum() int

GetCpm percentage

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.

func (*Service) SetAdIsPost

func (s *Service) SetAdIsPost(isPost bool)

SetIsPost Get or Post

func (*Service) SetCpmAll

func (s *Service) SetCpmAll(isAll bool)

SetCpm All

func (*Service) SetCpmMid

func (s *Service) SetCpmMid(mid int64)

SetCpm percentage 0~100

func (*Service) SetCpmNum

func (s *Service) SetCpmNum(num int)

SetCpm percentage 0~100

func (*Service) Show

func (s *Service) Show(c context.Context, plat int8, rid, build int, mid int64, channel, buvid, network, mobiApp, device, adExtra string) (res *region.Show)

Show region show

func (*Service) ShowDynamic

func (s *Service) ShowDynamic(c context.Context, plat int8, build, rid, pn, ps int) (res []*region.ShowItem)

ShowDynamic show dynamic page

Jump to

Keyboard shortcuts

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