# Functions
No description provided by the author
No description provided by the author
FixParamNames fixes the parameter names to be `per_page` and `page`, to be used with oapi-codegen.
FixParamNamesWith fixes the parameter names to be `per_page` and `page`, to be used with oapi-codegen.
GetPaginationParams returns the PaginatedParams from the gin.Context, with default values of page `1` and `10` items per page.
GetPaginationParamsWithDefault returns the PaginatedParams from the gin.Context with given default values.
PageQueryParams sets the page and per_page query parameters.
SetResponse changes the response of given OpenAPI operation to meet the paginate response.
# Constants
ParamPage is the query parameter name for the page number.
ParamPerPage is the query parameter name for the number of items per page.
# Structs
PaginatedList is a struct that contains the paginated list of items.
PaginatedParams is a struct that contains the page and per_page parameters.
No description provided by the author
# Interfaces
PQ is an interface that defines the methods for queries to be paginated.