cmp

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 the CMP features.

Types

type Complaint

type Complaint struct {
	ID           *swan.ID // The swan.ID that the complaint relates to
	DPRURL       string
	Organization string
	Country      string
	// contains filtered or unexported fields
}

Complaint used to format an email template.

func (*Complaint) Date

func (c *Complaint) Date() string

Date to use in the email template.

func (*Complaint) IDAsString

func (c *Complaint) IDAsString() (string, error)

ID as a string

func (*Complaint) Preferences

func (c *Complaint) Preferences() string

Preferences string to use in the email template.

func (*Complaint) SID

func (c *Complaint) SID() string

SID to use in the email template.

func (*Complaint) SWANOWID

func (c *Complaint) SWANOWID() string

SWANOWID as a string

func (*Complaint) SWID

func (c *Complaint) SWID() string

SWID to use in the email template.

type InfoModel

type InfoModel struct {
	OWIDs      map[*owid.OWID]interface{}
	Bid        *swan.Bid
	ID         *swan.ID
	Root       *owid.OWID
	ReturnURL  template.HTML
	AccessNode string
}

InfoModel data needed for the advert information interface.

func (*InfoModel) Version

func (m *InfoModel) Version() string

Version is a code for cache busting.

type ModelEmail

type ModelEmail struct {
	*salt.Salt
	PreferencesUrl string
}

ModelEmail used with the email template.

Jump to

Keyboard shortcuts

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