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 ¶
func GetInvalidPDV ¶
GetInvalidPDV returns indicies of invalid PDV.
Types ¶
type AdvertiserID ¶
type AdvertiserID struct { Advertiser string `json:"advertiser"` Name string `json:"name"` Value string `json:"value"` }
AdvertiserID is id for advertiser..
func (AdvertiserID) MarshalJSON ¶
func (d AdvertiserID) MarshalJSON() ([]byte, error)
MarshalJSON ...
type Cookie ¶
type Cookie struct { types.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 { types.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 ¶
type SearchHistory struct { types.Timestamp Domain string `json:"domain"` Engine string `json:"engine"` Query string `json:"query"` }
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.