Files
iabtcfv2/constants.go
2020-04-08 17:54:35 +02:00

29 lines
658 B
Go

package iabtcfv2
type SegmentType int
const (
SegmentTypeUndefined SegmentType = -1
SegmentTypeCoreString SegmentType = 0
SegmentTypeDisclosedVendors SegmentType = 1
SegmentTypeAllowedVendors SegmentType = 2
SegmentTypePublisherTC SegmentType = 3
)
type TcfVersion int
const (
TcfVersionUndefined TcfVersion = -1
TcfVersion1 TcfVersion = 1
TcfVersion2 TcfVersion = 2
)
type RestrictionType int
const (
RestrictionTypeNotAllowed RestrictionType = 0
RestrictionTypeRequireConsent RestrictionType = 1
RestrictionTypeRequireLI RestrictionType = 2
RestrictionTypeUndefined RestrictionType = 3
)