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
GetInvalidPDV return indices of invalid pdv.
Types ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.