diff options
Diffstat (limited to 'worker/types/sort.go')
-rw-r--r-- | worker/types/sort.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/worker/types/sort.go b/worker/types/sort.go new file mode 100644 index 00000000..ffbcf463 --- /dev/null +++ b/worker/types/sort.go @@ -0,0 +1,19 @@ +package types + +type SortField int + +const ( + SortArrival SortField = iota + SortCc + SortDate + SortFrom + SortRead + SortSize + SortSubject + SortTo +) + +type SortCriterion struct { + Field SortField + Reverse bool +} |