Documentation
¶
Index ¶
- func Handler(d *common.Domain, w http.ResponseWriter, r *http.Request)
- type MarketerModel
- func (m *MarketerModel) AuditFullHTML() (template.HTML, error)
- func (m *MarketerModel) AuditWinnerHTML() (template.HTML, error)
- func (m *MarketerModel) ID() (string, error)
- func (m *MarketerModel) IDUnpacked() (template.HTML, error)
- func (m *MarketerModel) Stop() bool
- func (m *MarketerModel) TreeAsJSON() (template.HTML, error)
- func (m *MarketerModel) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MarketerModel ¶
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.
Click to show internal directories.
Click to hide internal directories.