Documentation
¶
Overview ¶
Package metadata defines Go types matching the Google Photos Takeout JSON schema.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailedEntry ¶
type FailedEntry struct {
MissingEntry
Error string `json:"error"`
}
FailedEntry is a recovery entry annotated with an error reason.
type GeoData ¶
type GeoData struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Altitude float64 `json:"altitude"`
LatitudeSpan float64 `json:"latitudeSpan"`
LongitudeSpan float64 `json:"longitudeSpan"`
}
GeoData holds GPS coordinates and altitude as they appear in Takeout JSON.
type MissingEntry ¶
type MissingEntry struct {
Title string `json:"title"`
URL string `json:"url"`
PhotoTakenDate string `json:"photoTakenDate"`
SourceFolder string `json:"sourceFolder"`
}
MissingEntry represents one record in the missing-files.json report.
type Person ¶
type Person struct {
Name string `json:"name"`
}
Person represents a tagged face in the photo.
type Photo ¶
type Photo struct {
Title string `json:"title"`
Description string `json:"description"`
ImageViews string `json:"imageViews"`
CreationTime Timestamp `json:"creationTime"`
PhotoTakenTime Timestamp `json:"photoTakenTime"`
GeoData GeoData `json:"geoData"`
GeoDataExif GeoData `json:"geoDataExif"`
People []Person `json:"people"`
URL string `json:"url"`
GooglePhotosOrigin *struct {
MobileUpload *struct {
DeviceFolder *struct {
LocalFolderName string `json:"localFolderName"`
} `json:"deviceFolder"`
DeviceType string `json:"deviceType"`
} `json:"mobileUpload"`
} `json:"googlePhotosOrigin"`
}
Photo is the top-level structure of a Google Photos .json metadata file.
Click to show internal directories.
Click to hide internal directories.