package
Version:
v0.0.0-...-d841f61
Opens a new window with list of versions in this module.
Published: Jun 11, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DefaultPage = 1
DefaultLimit = 10
DefaultPaginate = true
)
type FilteredQuery struct {
Query
Search string `form:"search"`
Filter string `form:"filter"`
Sort string `form:"sort"`
WithFlags bool `form:"with_flags"`
}
type Query struct {
Page int64 `form:"page" binding:"numeric,gt=0"`
Limit int64 `form:"limit" binding:"numeric,gt=0"`
Paginate bool `form:"paginate"`
}
Query is base request for pagination.
func GetDefaultQuery() Query
Source Files
¶
Click to show internal directories.
Click to hide internal directories.