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 ¶ added in v0.226.0
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 ¶
Click to show internal directories.
Click to hide internal directories.