Documentation ¶
Index ¶
- func Handler(d *common.Domain, w http.ResponseWriter, r *http.Request)
- func HandlerAdvert(d *common.Domain, w http.ResponseWriter, r *http.Request)
- type Model
- func (m Model) CMPURL() string
- func (m Model) DomainsByCategory(category string) []*common.Domain
- func (m Model) HomeNode() string
- func (m Model) IsNew() bool
- func (m Model) NewAdvertHTML(placement string) (template.HTML, error)
- func (m Model) NewSWANIDAsString() string
- func (m Model) Personalized() bool
- func (m Model) PrefAsString() string
- func (m Model) PrefDate() string
- func (m Model) PrefDomain() string
- func (m Model) SIDAsString() string
- func (m Model) SIDDate() string
- func (m Model) SIDDomain() string
- func (m Model) SWANURL() string
- func (m Model) SWIDAsString() string
- func (m Model) SWIDDate() string
- func (m Model) SWIDDomain() string
- func (m Model) Stopped() []string
- func (m *Model) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerAdvert ¶
HandlerAdvert for the request for adverts for the publisher web pages.
Types ¶
type Model ¶
Model used with HTML templates.
func (Model) DomainsByCategory ¶
DomainsByCategory returns all the domains that match the category.
func (Model) NewAdvertHTML ¶
NewAdvertHTML provides the HTML for the advert that will be displayed on the web page at the placement provided.
func (Model) NewSWANIDAsString ¶
func (Model) Personalized ¶
Personalized returns a boolean to indicate if personalized marketing is enabled.
func (Model) PrefAsString ¶
PrefAsString true if personalized marketing allowed, otherwise false
func (Model) PrefDomain ¶
PrefDomain returns the domain that created the Allow OWID
func (Model) SWANURL ¶
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) SWIDDomain ¶
SWIDDomain returns the domain that created the SWID OWID