Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaginatedRequest ¶
type PaginatedRequest struct { Page int PageSize int Query string SortLabel string SortDirection string }
func NewPaginatedRequest ¶
func NewPaginatedRequest(r *http.Request) PaginatedRequest
type PaginatedResponse ¶
type PaginatedResponse struct { CurrentPage int `json:"current_page"` TotalPages int `json:"total_pages"` TotalCount int `json:"total_count"` PageSize int `json:"page_size"` PreviousPage int `json:"previous_page"` HasPreviousPage bool `json:"has_previous_page"` NextPage int `json:"next_page"` HasNextPage bool `json:"has_next_page"` }
func NewPaginatedResponse ¶
func NewPaginatedResponse(total, size, current int) PaginatedResponse
Click to show internal directories.
Click to hide internal directories.