mirror of
https://github.com/project-zot/zot.git
synced 2025-01-06 22:40:28 -05:00
19 lines
394 B
Go
19 lines
394 B
Go
|
package pagination
|
||
|
|
||
|
type SortCriteria string
|
||
|
|
||
|
type PageInput struct {
|
||
|
Limit int
|
||
|
Offset int
|
||
|
SortBy SortCriteria
|
||
|
}
|
||
|
|
||
|
const (
|
||
|
Relevance = SortCriteria("RELEVANCE")
|
||
|
UpdateTime = SortCriteria("UPDATE_TIME")
|
||
|
AlphabeticAsc = SortCriteria("ALPHABETIC_ASC")
|
||
|
AlphabeticDsc = SortCriteria("ALPHABETIC_DSC")
|
||
|
Stars = SortCriteria("STARS")
|
||
|
Downloads = SortCriteria("DOWNLOADS")
|
||
|
)
|