20 lines
208 B
Go
20 lines
208 B
Go
|
package types
|
||
|
|
||
|
type SortField int
|
||
|
|
||
|
const (
|
||
|
SortArrival SortField = iota
|
||
|
SortCc
|
||
|
SortDate
|
||
|
SortFrom
|
||
|
SortRead
|
||
|
SortSize
|
||
|
SortSubject
|
||
|
SortTo
|
||
|
)
|
||
|
|
||
|
type SortCriterion struct {
|
||
|
Field SortField
|
||
|
Reverse bool
|
||
|
}
|