blob: f52890609dff07f423d9bab63c9544a46868dfa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package gallery
type SortField string
const (
SortByDateTime SortField = "dateTaken"
SortByPath SortField = "path"
)
// SortOrder identifies the sort direction
type SortOrder string
const (
SortAsc SortOrder = "asc"
SortDesc SortOrder = "desc"
)
// Query describes how photos should be selected.
//
// The zero value returns the entire gallery.
type Query struct {
Limit int
Offset int
Sort SortField
Order SortOrder
}
|