Documentation
¶
Index ¶
- Constants
- func StartMServer()
- func Var(r *http.Request, name string) string
- type AffectedItems
- type ApiError
- type AuthUser
- type Capabilities
- type DriveCheck
- type DriveFile
- type DriveFiles
- type Job
- type JobFailure
- type LoginCodeEmail
- type PSResponse
- type PhotoFiles
- type SessionGuest
- type WelcomeEmail
Constants ¶
View Source
const (
Session_Month int = 60 * 60 * 24 * 30
)
View Source
const StateAborted = "ABORTED" // failed with an error
View Source
const StateCancelled = "CANCELLED" // stopped by the owner
View Source
const StateFinished = "FINISHED"
View Source
const StateScheduled = "SCHEDULED"
View Source
const StateStarted = "STARTED"
Variables ¶
This section is empty.
Functions ¶
func StartMServer ¶
func StartMServer()
Types ¶
type AffectedItems ¶ added in v0.3.0
type AffectedItems struct {
NumItems int `json:"numItems"`
}
type ApiError ¶
func BadRequestError ¶
func InternalError ¶
func NotFoundError ¶
func ResolveError ¶
func UnauthorizedError ¶
type Capabilities ¶ added in v0.7.0
type Capabilities struct {
// VideoEnabled is true when ffmpeg/ffprobe are available (video import/upload works).
VideoEnabled bool `json:"videoEnabled"`
}
Capabilities advertises server-side features the frontend needs to know about, independent of any Drive connection or login. Extend as more capabilities appear.
type DriveCheck ¶ added in v0.7.0
DriveCheck is the "what's new" overview: how many not-yet-imported images and videos are in the Drive folder. Whether video is supported at all is a server capability (see GET /api/capabilities), not a Drive-check concern.
type DriveFiles ¶
type Job ¶
type Job struct {
Id string `json:"id"`
Kind string `json:"kind"` // "image" | "video"
State string `json:"state"`
Percent int `json:"percent"`
NumFiles int `json:"numFiles"`
NumProcessed int `json:"numProcessed"`
NumAdded int `json:"numAdded"`
NumSkipped int `json:"numSkipped"`
NumFailed int `json:"numFailed"`
Failures []JobFailure `json:"failures,omitempty"`
Err *ApiError `json:"error,omitempty"`
// contains filtered or unexported fields
}
type JobFailure ¶ added in v0.7.0
JobFailure records one file that failed within a job (for the UI, e.g. "1 skipped: hdr").
type LoginCodeEmail ¶ added in v0.3.0
type PSResponse ¶
type PSResponse struct {
Err *ApiError `json:"error,omitempty"`
Data interface{} `json:"data,omitempty"`
}
type PhotoFiles ¶
type SessionGuest ¶
type SessionGuest struct {
Id string `json:"id"`
}
type WelcomeEmail ¶
Click to show internal directories.
Click to hide internal directories.