blob: e2003d54a3dfed53fa901a9daf8d4c41feeb1135 (
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 (
SortByDateTaken 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
}
|