gdpr

package
v0.266.0 Latest Latest
Warning

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

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

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.

type Policy

type Policy struct {
	Signal  string
	Consent string
}

Policy represents the GDPR regulation for an OpenRTB bid request.

Jump to

Keyboard shortcuts

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