gdpr

package
v2.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConsent

func ValidateConsent(consent string) bool

ValidateConsent returns true if the consent string is empty or valid per the IAB TCF spec.

Types

type ConsentWriter

type ConsentWriter struct {
	Consent    string
	RegExtGDPR *int8
}

ConsentWriter implements the PolicyWriter interface for GDPR TCF.

func (ConsentWriter) Write

func (c ConsentWriter) Write(req *openrtb2.BidRequest) error

Write mutates an OpenRTB bid request with the GDPR TCF consent.

Jump to

Keyboard shortcuts

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