Documentation
¶
Index ¶
- type ApplyChangesRequest
- type ApplyChangesResponse
- type ApplyError
- type ApplyFileChange
- type ApplyStartResponse
- type DirectoryBrowseResponse
- type DirectorySelectorState
- type GeoLookupCandidate
- type GeoLookupRequest
- type GeoLookupResponse
- type Handlers
- func (h *Handlers) Apply(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) BrowseDirectories(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) GeoLookup(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) Healthz(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) Image(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) Index(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) InspectExif(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) Load(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) Pane(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) ProgressWS(w http.ResponseWriter, r *http.Request)
- func (h *Handlers) TimezoneOffsets(w http.ResponseWriter, r *http.Request)
- type HeaderPathSegment
- type InitialState
- type InspectExifResponse
- type LoadRequest
- type LoadResponse
- type PageConfig
- type PanePhotoModel
- type PaneRenderData
- type TimezoneLookupEntry
- type TimezoneLookupRequest
- type TimezoneLookupResponse
- type TimezoneLookupResult
- type ViewState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyChangesRequest ¶
type ApplyChangesRequest struct {
PageID string `json:"page_id"`
Changes []ApplyFileChange `json:"changes"`
}
type ApplyChangesResponse ¶
type ApplyChangesResponse struct {
Applied []string `json:"applied"`
Errors []ApplyError `json:"errors"`
}
type ApplyError ¶
type ApplyFileChange ¶
type ApplyFileChange struct {
Path string `json:"path"`
ExifTime *string `json:"exif_time,omitempty"`
ExifOffset *string `json:"exif_offset,omitempty"`
GPSTime *string `json:"gps_time,omitempty"`
GPSLatitude *float64 `json:"gps_latitude,omitempty"`
GPSLongitude *float64 `json:"gps_longitude,omitempty"`
}
type ApplyStartResponse ¶
type ApplyStartResponse struct {
TaskID string `json:"task_id"`
}
type DirectoryBrowseResponse ¶
type DirectoryBrowseResponse struct {
Path string `json:"path"`
Separator string `json:"separator"`
Segments []xplat.PathSegment `json:"segments"`
Entries []xplat.DirectoryEntry `json:"entries"`
Error string `json:"error,omitempty"`
}
type DirectorySelectorState ¶
type DirectorySelectorState struct {
Path string
Separator string
Segments []xplat.PathSegment
Entries []xplat.DirectoryEntry
Error string
}
type GeoLookupCandidate ¶
type GeoLookupRequest ¶
type GeoLookupResponse ¶
type GeoLookupResponse struct {
Candidates []GeoLookupCandidate `json:"candidates"`
}
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func (*Handlers) BrowseDirectories ¶
func (h *Handlers) BrowseDirectories(w http.ResponseWriter, r *http.Request)
func (*Handlers) InspectExif ¶
func (h *Handlers) InspectExif(w http.ResponseWriter, r *http.Request)
func (*Handlers) ProgressWS ¶
func (h *Handlers) ProgressWS(w http.ResponseWriter, r *http.Request)
func (*Handlers) TimezoneOffsets ¶
func (h *Handlers) TimezoneOffsets(w http.ResponseWriter, r *http.Request)
type HeaderPathSegment ¶
type InitialState ¶
type InspectExifResponse ¶
type LoadRequest ¶
type LoadResponse ¶
type LoadResponse struct {
TaskID string `json:"task_id"`
}
type PageConfig ¶
type PanePhotoModel ¶
type PanePhotoModel struct {
ID string `json:"id"`
Order int `json:"order"`
Side model.Side `json:"side"`
BaseName string `json:"basename"`
Path string `json:"path"`
RelativePath string `json:"relative_path"`
Size int64 `json:"size"`
ModTime string `json:"modtime"`
Resolution string `json:"resolution"`
ExifTime string `json:"exif_time"`
BaseExifTime string `json:"base_exif_time"`
ExifOffset string `json:"exif_offset"`
BaseExifOffset string `json:"base_exif_offset"`
GPSTime string `json:"gps_time"`
BaseGPSTime string `json:"base_gps_time"`
GPSTimeZone string `json:"gps_timezone"`
ExifGPS string `json:"exif_gps"`
BaseExifGPS string `json:"base_exif_gps"`
GPSLat string `json:"gps_lat"`
GPSLon string `json:"gps_lon"`
BaseGPSLat string `json:"base_gps_lat"`
BaseGPSLon string `json:"base_gps_lon"`
Aperture string `json:"aperture"`
Exposure string `json:"exposure"`
FocalLength string `json:"focal_length"`
ISO string `json:"iso"`
MeteringMode string `json:"metering_mode"`
CameraModel string `json:"camera_model"`
ThumbnailURL string `json:"thumbnail_url"`
}
type PaneRenderData ¶
type PaneRenderData struct {
SectionSide string
Key string
HeaderTitle string
PreviewLabel string
EmptyStateText string
TimezoneLabel string
QueryName string
SelectorLabel string
Browser bool
Paths []string
Selector DirectorySelectorState
Recursive bool
Photos []model.Photo
Error string
DirPath string
DirSegments []HeaderPathSegment
BrowseURL string
PaneSummary string
PictureViewTotal int
ModelJSON template.JS
}
type TimezoneLookupEntry ¶
type TimezoneLookupRequest ¶
type TimezoneLookupRequest struct {
Entries []TimezoneLookupEntry `json:"entries"`
}
type TimezoneLookupResponse ¶
type TimezoneLookupResponse struct {
Results []TimezoneLookupResult `json:"results"`
}
type TimezoneLookupResult ¶
type ViewState ¶
type ViewState struct {
PageID string
TargetPaths []string
ReferencePaths []string
Recursive bool
TargetBrowser bool
ReferenceBrowser bool
TargetSelector DirectorySelectorState
ReferenceSelector DirectorySelectorState
TargetPhotos []model.Photo
ReferencePhotos []model.Photo
TargetError error
ReferenceError error
TargetDirPath string
ReferenceDirPath string
TargetDirSegments []HeaderPathSegment
ReferenceDirSegments []HeaderPathSegment
TargetBrowseURL string
ReferenceBrowseURL string
}
Click to show internal directories.
Click to hide internal directories.