package
Version:
v0.0.0-...-bb80d3f
Opens a new window with list of versions in this module.
Published: Nov 15, 2024
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"`
Sort string `form:"sort"`
WithFlags bool `form:"with_flags"`
}
type Query struct {
Page int64 `form:"page" json:"page" binding:"numeric,gt=0"`
Limit int64 `form:"limit" json:"limit" binding:"numeric,gt=0"`
Paginate bool `form:"paginate" json:"paginate"`
}
Query is base request for pagination.
func GetDefaultQuery() Query
Source Files
¶
Click to show internal directories.
Click to hide internal directories.