gdpr

package
v0.0.0-...-498b6f3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 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 *openrtb.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