Documentation ¶
Overview ¶
Package schema implements schema for version v2.
Index ¶
Constants ¶
View Source
const Version types.Version = "v1"
Version ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvertiserID ¶
AdvertiserID is id for advertiser..
func (AdvertiserID) MarshalJSON ¶
func (d AdvertiserID) MarshalJSON() ([]byte, error)
MarshalJSON ...
type Cookie ¶
type Cookie struct { Timestamp Source types.Source `json:"source"` Name string `json:"name"` Value string `json:"value"` Domain string `json:"domain"` Path string `json:"path"` SameSite string `json:"sameSite"` HostOnly bool `json:"hostOnly"` Secure bool `json:"secure"` ExpirationDate uint64 `json:"expirationDate,omitempty"` }
Cookie is PDVData implementation for Cookies(according to https://developer.chrome.com/extensions/cookies).
type Location ¶
type Location struct { Timestamp Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` RequestedBy *types.Source `json:"requestedBy"` }
Location is user's geolocation.
type Profile ¶
type Profile struct { FirstName string `json:"firstName"` LastName string `json:"lastName"` Emails []string `json:"emails"` Bio string `json:"bio"` Gender types.Gender `json:"gender"` Avatar string `json:"avatar"` Birthday types.Date `json:"birthday"` }
Profile is PDVData implementation for profile's data.
type SearchHistory ¶
SearchHistory is user's search history.
func (SearchHistory) MarshalJSON ¶
func (d SearchHistory) MarshalJSON() ([]byte, error)
MarshalJSON ...
Click to show internal directories.
Click to hide internal directories.