Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetPageAndSize ¶
GetPageAndSize retrieves the pagination parameters (page and page size) from the query parameters of the request context. If no parameters are provided, it uses the default page size. It also ensures the page and page size values are valid. Returns the offset for database queries, the page size, and an error if any of the parameters are invalid.
type ErrorResponse ¶ added in v0.1.0
type PaginatedResponse ¶
type PaginatedResponse struct { Results interface{} `json:"results"` Count int64 `json:"count"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.