marketer

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: 11 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 the marketer features.

Types

type MarketerModel

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

MarketerModel used with HTML templates.

func (*MarketerModel) AuditFullHTML

func (m *MarketerModel) AuditFullHTML() (template.HTML, error)

AuditFullHTML returns the audit information from the bid used in the advert that resulted in the request to this page.

func (*MarketerModel) AuditWinnerHTML

func (m *MarketerModel) AuditWinnerHTML() (template.HTML, error)

AuditWinnerHTML returns the audit information from the bid used in the advert that resulted in the request to this page.

func (*MarketerModel) ID

func (m *MarketerModel) ID() (string, error)

ID returns the SWAN ID string for the advert.

func (*MarketerModel) IDUnpacked

func (m *MarketerModel) IDUnpacked() (template.HTML, error)

IDUnpacked returns the unpacked SWAN ID.

func (*MarketerModel) Stop

func (m *MarketerModel) Stop() bool

Stop returns true if the request includes the key Stop to indicate that the advert should no longer be displayed.

func (*MarketerModel) TreeAsJSON

func (m *MarketerModel) TreeAsJSON() (template.HTML, error)

TreeAsJSON return the transaction as JSON.

func (*MarketerModel) Version

func (m *MarketerModel) 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