-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal_data.go
27 lines (23 loc) · 1011 Bytes
/
global_data.go
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 rebrandly
// OrderBy represent a given ordering
type OrderBy string
const (
// OrderByCreatedAt represents the "createdAt" ordering for an OrderBy. Valid for Domains, Links.
OrderByCreatedAt OrderBy = "createdAt"
// OrderByUpdatedAt represents the "updatedAt" ordering for an OrderBy. Valid for Domains.
OrderByUpdatedAt OrderBy = "updatedAt"
// OrderByFullName represents the "fullName" ordering for an OrderBy. Valid for Domains.
OrderByFullName OrderBy = "fullName"
// OrderByTitle represents the "title" ordering for an OrderBy. Valid for Links.
OrderByTitle OrderBy = "title"
// OrderBySlashTag represents the "slashtag" ordering for an OrderBy. Valid for Links.
OrderBySlashTag OrderBy = "slashtag"
)
// OrderDir represents the sorting direction
type OrderDir string
const (
// OrderDirDesc represents the "desc" sorting direction for a OrderDir.
OrderDirDesc OrderDir = "desc"
// OrderDirAsc represents the "asc" sorting direction for a OrderDir.
OrderDirAsc OrderDir = "asc"
)