urlgenerator

package
v0.0.0-...-a08dd98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareURL

func PrepareURL(url string, event *events.Event) string

PrepareURL by event

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

func (g *Generator) CDNURL(path string) string

CDNURL returns full URL to path

func (*Generator) ClickRouterURL

func (g *Generator) ClickRouterURL() string

ClickRouterURL returns router pattern

func (*Generator) ClickURL

func (g *Generator) ClickURL(item adtype.ResponserItem, response adtype.Responser) (string, error)

ClickURL generator from respponse of item

func (*Generator) DirectRouterURL

func (g *Generator) DirectRouterURL() string

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

func (g *Generator) Init() *Generator

func (*Generator) LibURL

func (g *Generator) LibURL(path string) string

LibURL returns full URL to lib file path

func (*Generator) MustClickURL

func (g *Generator) MustClickURL(item adtype.ResponserItem, response adtype.Responser) string

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

func (g *Generator) WinRouterURL() string

WinRouterURL returns router pattern

func (*Generator) WinURL

func (g *Generator) WinURL(event events.Type, status uint8, item adtype.ResponserItem, response adtype.Responser) (string, error)

WinURL generator from response of item

Jump to

Keyboard shortcuts

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