Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConsentNone = 0 ConsentTCF1 = 1 ConsentTCF2 = 2 ConsentUSPrivacy = 3 )
Policy consent types
Variables ¶
This section is empty.
Functions ¶
func ReadPolicy ¶
func ReadPolicy(ampParams Params, pbsConfigGDPREnabled bool) (privacy.PolicyWriter, error)
ReadPolicy returns a privacy writer in accordance to the query values consent, consent_type and gdpr_applies. Returned policy writer could either be GDPR, CCPA or NilPolicy. The second return value is a warning.
Types ¶
type Params ¶
type Params struct {
Account string
AdditionalConsent string
CanonicalURL string
Consent string
ConsentType int64
Debug bool
GdprApplies *bool
Origin string
Size Size
Slot string
StoredRequestID string
Targeting string
Timeout *uint64
Trace string
}
Params defines the parameters of an AMP request.
Click to show internal directories.
Click to hide internal directories.