gpp

package
v0.267.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexOfSID added in v0.256.0

func IndexOfSID(gpp gpplib.GppContainer, sid gppConstants.SectionID) int

IndexOfSID returns a zero or non-negative integer that represents the position of the 'sid' value in the 'gpp.SectionTypes' array. If the 'sid' value is not found, returns -1. This logic is used in more than one place in our codebase, therefore it was decided to make it its own function.

func IsSIDInList added in v0.256.0

func IsSIDInList(gppSIDs []int8, sid gppConstants.SectionID) bool

IsSIDInList returns true if the 'sid' value is found in the gppSIDs array. Its logic is used in more than one place in our codebase, therefore it was decided to make it its own function.

Types

type Policy

type Policy struct {
	Consent string
	RawSID  string // This is the CSV format ("2,6") that the IAB recommends for passing the SID(s) on a query string.
}

Policy represents the GPP privacy string container. Currently just a placeholder until more expansive support is made.

Jump to

Keyboard shortcuts

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