gpp

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

go-gpp

Golang support for the IAB's GPP framework

Documentation

Index

Constants

View Source
const (
	SectionGPPByte  byte = 'D'
	MaxHeaderLength      = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericSection

type GenericSection struct {
	// contains filtered or unexported fields
}

func (GenericSection) GetID

func (gs GenericSection) GetID() constants.SectionID

func (GenericSection) GetValue

func (gs GenericSection) GetValue() string

type GppContainer

type GppContainer struct {
	Version      int
	SectionTypes []constants.SectionID
	Sections     []Section
}

func Parse

func Parse(v string) (GppContainer, []error)

type Section

type Section interface {
	GetID() constants.SectionID
	GetValue() string // base64 encoding usually, but plaintext for ccpa
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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