sections

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBitStreams

func CreateBitStreams(encoded string, gpcCheck bool) (*util.BitStream, *util.BitStream, error)

func ErrorHelper

func ErrorHelper(name string, err error) error

Types

type CommonUSCoreSegment

type CommonUSCoreSegment struct {
	Version                         byte
	SharingNotice                   byte
	SaleOptOutNotice                byte
	TargetedAdvertisingOptOutNotice byte
	SaleOptOut                      byte
	TargetedAdvertisingOptOut       byte
	SensitiveDataProcessing         []byte
	KnownChildSensitiveDataConsents []byte
	MspaCoveredTransaction          byte
	MspaOptOutOptionMode            byte
	MspaServiceProviderMode         byte
}

CommonUSCoreSegment replicates the structure of many US State consent strings, and as such is shared across those state implementations. Do note an array of size one is a valid construct if the state only has one subfield for that field.

func NewCommonUSCoreSegment

func NewCommonUSCoreSegment(sensitiveDataFields int, knownChildDataFields int, bs *util.BitStream) (CommonUSCoreSegment, error)

func (CommonUSCoreSegment) Encode

func (segment CommonUSCoreSegment) Encode(bs *util.BitStream)

type CommonUSGPCSegment

type CommonUSGPCSegment struct {
	SubsectionType byte
	Gpc            bool
}

func NewCommonUSGPCSegment

func NewCommonUSGPCSegment(bs *util.BitStream) (CommonUSGPCSegment, error)

func (CommonUSGPCSegment) Encode

func (gpc CommonUSGPCSegment) Encode(bs *util.BitStream)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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