Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Count ¶
Count calculates the page count with the given resultCount of a pagination query and a page limit.
Types ¶
type Model ¶
type Model struct {
Limit int `json:"limit"`
Page int `json:"page"`
PageCount int `json:"pageCount"`
Total int `json:"total"`
Result interface{} `json:"result"`
}
Model struct is used to return paginated data.
func CreatePaginationModel ¶
CreatePaginationModel is a helper to be able to return a pagination model in a single line
Click to show internal directories.
Click to hide internal directories.