Documentation ¶
Index ¶
- type AlertData
- type DataCampaignAction
- type DataConfig
- type DataCounter
- type DataCounterDetail
- type DataCounterDetailInternal
- type DataTraffic
- type DataUser
- type GlobalResponse
- type GlobalResponseWithData
- type GlobalSetting
- type PixelStorage
- type PixelStorageRsp
- type Postback
- type PostbackData
- type RedisCounter
- type ReturnResponse
- type Traffic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataCampaignAction ¶ added in v0.3.5
type DataCampaignAction struct { Action string `json:"action"` Id int `json:"id"` CampaignId string `json:"campaign_id"` CampaignName string `json:"name"` Objective string `json:"campaign_objective"` Country string `json:"country"` Advertiser string `json:"advertiser"` IsDelCamp bool `json:"is_del_camp"` CPCR string `json:"cost_per_conversion"` AgencyFee string `json:"agency_fee"` DataConfig []DataConfig `json:"data"` }
type DataConfig ¶
type DataConfig struct { Id int `json:"id"` // <- URLServiceKey string `json:"urlservicekey"` // lp-idxlgazpastelmbv CampaignId string `json:"campaign_id"` // ID1 CampaignName string `json:"name"` Objective string `json:"objective"` Country string `json:"country"` Advertiser string `json:"advertiser"` Operator string `json:"operator"` Partner string `json:"partner"` Aggregator string `json:"aggregator"` Adnet string `json:"adnet"` Service string `json:"service"` Keyword string `json:"keyword"` SubKeyword string `json:"subkeyword"` IsBillable bool `json:"is_billable"` Plan string `json:"plan"` PO string `json:"po"` Cost string `json:"cost"` PubId string `json:"pubid"` ShortCode string `json:"short_code"` DeviceType string `json:"device_type"` OS string `json:"os"` URLType string `json:"url_type"` ClickType int `json:"click_type"` ClickDelay int `json:"click_delay"` ClientType string `json:"client_type"` TrafficSource bool `json:"traffic_source"` UniqueClick bool `json:"unique_click"` URLBanner string `json:"url_banner"` URLLanding string `json:"url_landing"` URLWarpLanding string `json:"url_warp_landing"` URLService string `json:"url_service"` URLTFCSmartlink string `json:"url_tfc_or_smartlink"` GlobPost bool `json:"glob_post"` URLGlobPost string `json:"url_glob_post"` CustomIntegration string `json:"custom_integration"` IPAddress []uint8 `json:"ip_address"` ISP string `json:"isp"` IsActive bool `json:"is_active"` MOCapping int `json:"mo_capping"` CounterMOCapping int `json:"counter_mo_capping"` StatusCapping bool `json:"status_capping"` KPIUpperLimitCapping int `json:"kpi_upper_limit_capping"` IsMachineLearningCapping bool `json:"is_machine_learning_capping"` RatioSend int `json:"ratio_send"` RatioReceive int `json:"ratio_receive"` CounterMORatio int `json:"counter_mo_ratio"` StatusRatio bool `json:"status_ratio"` KPIUpperLimitRatioSend int `json:"kpi_upper_limit_ratio_send"` KPIUpperLimitRatioReceive int `json:"kpi_upper_limit_ratio_receive"` IsMachineLearningRatio bool `json:"is_machine_learning_ratio"` APIURL string `json:"api_url"` LastUpdate string `json:"last_update"` LastUpdateCapping string `json:"last_update_capping"` CPCR string `json:"cost_per_conversion"` AgencyFee string `json:"agency_fee"` TargetDailyBudget string `json:"target_daily_budget"` BudgetUsage string `json:"budget_usage"` URLPostback string `json:"url_postback"` }
type DataCounter ¶
type DataCounter struct { CampaignDetailId int `json:"campaign_detail_id"` URLServiceKey string `json:"urlservicekey"` CampaignId string `json:"campaign_id"` Country string `json:"country"` Partner string `json:"partner"` Operator string `json:"operator"` Aggregator string `json:"aggregator"` Service string `json:"service"` ShortCode string `json:"short_code"` Adnet string `json:"adnet"` Keyword string `json:"keyword"` SubKeyword string `json:"subkeyword"` IsBillable bool `json:"is_billable"` Plan string `json:"plan"` Traffic int `json:"traffic"` Landing int `json:"landing"` Click int `json:"click"` Redirect int `json:"redirect"` MOReceived int `json:"moreceived"` Postback int `json:"postback"` TotalFP int `json:"totalfp"` TrafficData []DataCounterDetail `json:"traffic_data"` LandingData []DataCounterDetail `json:"landing_data"` ClickData []DataCounterDetail `json:"click_data"` RedirectData []DataCounterDetail `json:"redirect_data"` MOData []DataCounterDetailInternal `json:"mo_data"` PostbackData []DataCounterDetailInternal `json:"postback_data"` FPData []DataCounterDetailInternal `json:"fp_data"` }
type DataCounterDetail ¶
type DataCounterDetailInternal ¶ added in v0.4.9
type DataTraffic ¶
type DataTraffic struct { URLServiceKey string `form:"urlservicekey" json:"urlservicekey" xml:"urlservicekey"` Aff_Sub string `form:"aff_sub" json:"aff_sub" xml:"aff_sub"` Partner string `form:"p" json:"p" xml:"p"` Service string `form:"srv" json:"srv" xml:"srv"` Adnet string `form:"ad" json:"ad" xml:"ad"` PubId string `form:"pubid" json:"pubid" xml:"pubid"` }
type GlobalResponse ¶
type GlobalResponseWithData ¶ added in v0.1.6
type GlobalResponseWithData struct { Code int `json:"code" xml:"code"` Message string `json:"message" xml:"message"` Data PixelStorageRsp `json:"data" xml:"data"` }
type GlobalSetting ¶ added in v0.6.7
type PixelStorage ¶
type PixelStorage struct { Id int `json:"id"` CampaignDetailId int `json:"campaign_detail_id"` PxDate string `json:"pxdate"` URLServiceKey string `json:"urlservicekey"` CampaignId string `json:"campaign_id"` Country string `json:"country"` Partner string `json:"partner"` Operator string `json:"operator"` Aggregator string `json:"aggregator"` Service string `json:"service"` ShortCode string `json:"short_code"` Adnet string `json:"adnet"` Keyword string `json:"keyword"` Subkeyword string `json:"subkeyword"` IsBillable bool `json:"is_billable"` Plan string `json:"plan"` URL string `json:"url"` URLType string `json:"url_type"` Pixel string `json:"pixel"` TrxId string `json:"trx_id"` Token string `json:"token"` Msisdn string `json:"msisdn"` IsUsed bool `json:"is_used"` Browser string `json:"browser"` OS string `json:"os"` IP string `json:"ip"` ISP string `json:"isp"` ReferralURL string `json:"referral_url"` PubId string `json:"pubid"` UserAgent string `json:"user_agent"` TrafficSource bool `json:"traffic_source"` TrafficSourceData string `json:"traffic_source_data"` UserRejected bool `json:"user_rejected"` UniqueClick bool `json:"unique_click"` UserDuplicated bool `json:"user_duplicated"` Handset string `json:"handset"` HandsetCode string `json:"handset_code"` HandsetType string `json:"handset_type"` URLLanding string `json:"url_landing"` URLWarpLanding string `json:"url_warp_landing"` URLService string `json:"url_service"` URLTFCSmartlink string `json:"url_tfc_or_smartlink"` PixelUsedDate string `json:"pixel_used_date"` StatusPostback bool `json:"status_postback"` IsUnique bool `json:"is_unique"` URLPostback string `json:"url_postback"` StatusURLPostback string `json:"status_url_postback"` ReasonURLPostback string `json:"reason_url_postback"` PO string `json:"po"` Cost string `json:"cost"` }
type PixelStorageRsp ¶ added in v0.1.6
type PixelStorageRsp struct { Adnet string `json:"adnet"` IsBillable bool `json:"is_billable"` Pixel string `json:"pixel"` TrxId string `json:"trx_id"` Msisdn string `json:"msisdn"` Browser string `json:"browser"` OS string `json:"os"` PubId string `json:"pubid"` Handset string `json:"handset"` PixelUsedDate string `json:"pixel_used_date"` }
type Postback ¶ added in v0.1.6
type Postback struct { CookieKey string URLServiceKey string `json:"country"` ServiceId string `json:"serv_id"` Keyword string `json:"keyword"` TrxId string `json:"trxid"` Msisdn string `json:"msisdn"` Px string `json:"px"` IsBillable bool `json:"is_billable"` }
func NewDataPostback ¶ added in v0.1.6
func NewDataPostback(c *fiber.Ctx) *Postback
func (*Postback) ValidateParams ¶ added in v0.1.6
func (p *Postback) ValidateParams(Logs *logrus.Logger) GlobalResponse
type PostbackData ¶ added in v0.3.4
type PostbackData struct { CmpDetail DataConfig Pxs PixelStorage }
type RedisCounter ¶ added in v0.0.6
type ReturnResponse ¶
type ReturnResponse struct { HttpStatus int Rsp interface{} }
type Traffic ¶
type Traffic struct { Date string Key string KeyCfg string KeyCounter string KeyDataMining string DataTraffic DataTraffic }
func NewInstanceTraffic ¶
func NewInstanceTraffic(cfg *config.Cfg, o DataTraffic) *Traffic
func (*Traffic) ValidateParams ¶
func (t *Traffic) ValidateParams(Logs *logrus.Logger, traffic *Traffic) GlobalResponse
Click to show internal directories.
Click to hide internal directories.