package
Version:
v0.0.0-...-9d47661
Opens a new window with list of versions in this module.
Published: Jan 12, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Page struct {
Number int
RowsPerPage int
}
ParseRequest parses the request for the page and rows query string.
The defaults are provided as well.
type Response[T any] struct {
Items []T `json:"items"`
Total int `json:"total"`
Page int `json:"page"`
RowsPerPage int `json:"rowsPerPage"`
}
Response is what is returned when a queery call is performed
NewResponse creates a response value for a web response.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.