publisher

package module
v0.0.0-...-57e0f59 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(d *common.Domain, w http.ResponseWriter, r *http.Request)

Handler for publisher web pages.

func HandlerAdvert

func HandlerAdvert(d *common.Domain, w http.ResponseWriter, r *http.Request)

HandlerAdvert for the request for adverts for the publisher web pages.

Types

type Model

type Model struct {
	common.PageModel
	// contains filtered or unexported fields
}

Model used with HTML templates.

func (Model) CMPURL

func (m Model) CMPURL() string

CMPURL returns the URL for the CMP dialog.

func (Model) DomainsByCategory

func (m Model) DomainsByCategory(category string) []*common.Domain

DomainsByCategory returns all the domains that match the category.

func (Model) HomeNode

func (m Model) HomeNode() string

HomeNode returns the internet domain name of the home node.

func (Model) IsNew

func (m Model) IsNew() bool

IsNew returns true if the SWID is newly created, otherwise false.

func (Model) NewAdvertHTML

func (m Model) NewAdvertHTML(placement string) (template.HTML, error)

NewAdvertHTML provides the HTML for the advert that will be displayed on the web page at the placement provided.

func (Model) NewSWANIDAsString

func (m Model) NewSWANIDAsString() string

func (Model) Personalized

func (m Model) Personalized() bool

Personalized returns a boolean to indicate if personalized marketing is enabled.

func (Model) PrefAsString

func (m Model) PrefAsString() string

PrefAsString true if personalized marketing allowed, otherwise false

func (Model) PrefDate

func (m Model) PrefDate() string

PrefDate returns the date Allow OWID was created

func (Model) PrefDomain

func (m Model) PrefDomain() string

PrefDomain returns the domain that created the Allow OWID

func (Model) SIDAsString

func (m Model) SIDAsString() string

SIDAsString Signed in IDentifier

func (Model) SIDDate

func (m Model) SIDDate() string

SIDDate returns the date SID OWID was created

func (Model) SIDDomain

func (m Model) SIDDomain() string

SIDDomain returns the domain that created the SID OWID

func (Model) SWANURL

func (m Model) SWANURL() string

SWANURL returns the URL for the SWAN operation. Used when the SWAN transaction is completed in a pop up window, iFrame or is a JavaScript include.

func (Model) SWIDAsString

func (m Model) SWIDAsString() string

SWIDAsString Secure Web IDentifier

func (Model) SWIDDate

func (m Model) SWIDDate() string

SWIDDate returns the date SWID OWID was created

func (Model) SWIDDomain

func (m Model) SWIDDomain() string

SWIDDomain returns the domain that created the SWID OWID

func (Model) Stopped

func (m Model) Stopped() []string

Stopped returns a list of the domains that have been stopped for advertising.

func (*Model) Version

func (m *Model) Version() string

Version is a code for cache busting.

Jump to

Keyboard shortcuts

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