schema

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package schema provides schemas and validation functions for it.

Index

Constants

View Source
const (
	PDVAdvertiserIDType  = types.PDVAdvertiserIDType
	PDVCookieType        = types.PDVCookieType
	PDVLocationType      = types.PDVLocationType
	PDVProfileType       = types.PDVProfileType
	PDVSearchHistoryType = types.PDVSearchHistoryType
)

nolint

View Source
const (
	V1 = v1.Version
)

nolint

Variables

This section is empty.

Functions

func GetInvalidPDV added in v1.5.21

func GetInvalidPDV(b []byte) ([]int, error)

GetInvalidPDV return indices of invalid pdv.

Types

type Data added in v1.5.21

type Data = types.Data

nolint

type PDV

type PDV = types.PDV

nolint

type PDVWrapper added in v1.5.21

type PDVWrapper struct {
	Device string
	// contains filtered or unexported fields
}

PDVWrapper is wrapper for PDV object.

It's very usable for composing into request or response.

func NewPDVWrapper added in v1.5.22

func NewPDVWrapper(device string, pdv types.PDV) PDVWrapper

NewPDVWrapper create a new PDV wrapper.

func (PDVWrapper) Data added in v1.5.21

func (p PDVWrapper) Data() []Data

Data ...

func (PDVWrapper) MarshalJSON added in v1.5.21

func (p PDVWrapper) MarshalJSON() ([]byte, error)

MarshalJSON ...

func (*PDVWrapper) UnmarshalJSON added in v1.5.21

func (p *PDVWrapper) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

func (PDVWrapper) Validate added in v1.5.21

func (p PDVWrapper) Validate() bool

Validate returns true if pdv is valid.

func (PDVWrapper) Version added in v1.5.21

func (p PDVWrapper) Version() Version

Version ...

type Source added in v1.5.21

type Source = types.Source

nolint

type Type added in v1.5.21

type Type = types.Type

nolint

type V1AdvertiserID added in v1.5.21

type V1AdvertiserID = v1.AdvertiserID

nolint

type V1Cookie added in v1.5.21

type V1Cookie = v1.Cookie

nolint

type V1Location added in v1.5.21

type V1Location = v1.Location

nolint

type V1Profile added in v1.5.21

type V1Profile = v1.Profile

nolint

type V1SearchHistory added in v1.5.21

type V1SearchHistory = v1.SearchHistory

nolint

type Version added in v1.5.21

type Version = types.Version

nolint

Directories

Path Synopsis
Package types contains shared types and constants for schema package.
Package types contains shared types and constants for schema package.
Package schema implements schema for version v2.
Package schema implements schema for version v2.

Jump to

Keyboard shortcuts

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