gdpr

package
v1.200.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 4 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
}

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