schema

package
v1.5.19 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 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.15

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

GetInvalidPDV return indices of invalid pdv.

Types

type Data

type Data = types.Data

nolint

type PDV

type PDV = types.PDV

nolint

type PDVWrapper

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

PDVWrapper is wrapper for PDV object.

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

func (PDVWrapper) Data

func (p PDVWrapper) Data() []Data

Data ...

func (PDVWrapper) MarshalJSON added in v1.2.8

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

MarshalJSON ...

func (*PDVWrapper) UnmarshalJSON

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

UnmarshalJSON ...

func (PDVWrapper) Validate

func (p PDVWrapper) Validate() bool

Validate ...

func (PDVWrapper) Version

func (p PDVWrapper) Version() Version

Version ...

type Source

type Source = types.Source

nolint

type Type

type Type = types.Type

nolint

type V1AdvertiserID

type V1AdvertiserID = v1.AdvertiserID

nolint

type V1Cookie

type V1Cookie = v1.Cookie

nolint

type V1Location

type V1Location = v1.Location

nolint

type V1Profile

type V1Profile = v1.Profile

nolint

type V1SearchHistory

type V1SearchHistory = v1.SearchHistory

nolint

type Version

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