Documentation ¶
Index ¶
- func PrepareURL(url string, event *events.Event) string
- type Generator
- func (g *Generator) BillingNoticeURL(event events.Type, status uint8, item adtype.ResponserItem, ...) (string, error)
- func (g *Generator) CDNURL(path string) string
- func (g *Generator) ClickRouterURL() string
- func (g *Generator) ClickURL(item adtype.ResponserItem, response adtype.Responser) (string, error)
- func (g *Generator) DirectRouterURL() string
- func (g *Generator) DirectURL(event events.Type, item adtype.ResponserItem, response adtype.Responser) (string, error)
- func (g *Generator) EventCode(event events.Type, status uint8, item adtype.ResponserItem, ...) (string, error)
- func (g *Generator) Init() *Generator
- func (g *Generator) LibURL(path string) string
- func (g *Generator) MustClickURL(item adtype.ResponserItem, response adtype.Responser) string
- func (g *Generator) PixelDirectURL(event events.Type, status uint8, item adtype.ResponserItem, ...) (string, error)
- func (g *Generator) PixelLead(item adtype.ResponserItem, response adtype.Responser, js bool) (string, error)
- func (g *Generator) PixelURL(event events.Type, status uint8, item adtype.ResponserItem, ...) (string, error)
- func (g *Generator) WinRouterURL() string
- func (g *Generator) WinURL(event events.Type, status uint8, item adtype.ResponserItem, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct { EventGenerator eventgenerator.Generator PixelGenerator pixelgenerator.PixelGenerator Schema string ServiceDomain string CDNDomain string LibDomain string ClickPattern string DirectPattern string WinPattern string BillingNoticePattern string }
Generator of URLs
func (*Generator) BillingNoticeURL ¶
func (g *Generator) BillingNoticeURL(event events.Type, status uint8, item adtype.ResponserItem, response adtype.Responser) (string, error)
BillingNoticeURL generator from response of item
func (*Generator) ClickRouterURL ¶
ClickRouterURL returns router pattern
func (*Generator) DirectRouterURL ¶
DirectRouterURL returns router pattern
func (*Generator) DirectURL ¶
func (g *Generator) DirectURL(event events.Type, item adtype.ResponserItem, response adtype.Responser) (string, error)
DirectURL generator from respponse of item
func (*Generator) EventCode ¶
func (g *Generator) EventCode(event events.Type, status uint8, item adtype.ResponserItem, response adtype.Responser) (string, error)
EventCode generator
func (*Generator) MustClickURL ¶
MustClickURL generator from respponse of item
func (*Generator) PixelDirectURL ¶
func (g *Generator) PixelDirectURL(event events.Type, status uint8, item adtype.ResponserItem, response adtype.Responser, direct string) (string, error)
PixelDirectURL generator from response of item
func (*Generator) PixelLead ¶
func (g *Generator) PixelLead(item adtype.ResponserItem, response adtype.Responser, js bool) (string, error)
Lead URL traking for lead type of event
func (*Generator) PixelURL ¶
func (g *Generator) PixelURL(event events.Type, status uint8, item adtype.ResponserItem, response adtype.Responser, js bool) (string, error)
PixelURL generator from response of item
func (*Generator) WinRouterURL ¶
WinRouterURL returns router pattern
Click to show internal directories.
Click to hide internal directories.