schema

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 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

This section is empty.

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