Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Paginate ¶
func Paginate(q []qm.QueryMod, r *PaginationRequestStruct, resp *PaginationResponseStruct) []qm.QueryMod
Paginate returns the queryMods for the paginated data
Types ¶
type CountStruct ¶
type CountStruct struct {
TotalCount int64 `boil:"total_count"`
}
CountStruct represents the count returned by the query
type PaginationRequestStruct ¶
type PaginationRequestStruct struct { PageNumber int `form:"page_number" json:"page_number"` PerPageCount int `form:"per_page_count" json:"per_page_count"` }
PaginationRequestStruct represents a pagination request
type PaginationResponseStruct ¶
type PaginationResponseStruct struct { TotalCount int64 `json:"total_count"` PageNumber int `json:"page_number"` }
PaginationResponseStruct represents the pagination results
Click to show internal directories.
Click to hide internal directories.