Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPageSize = 30 MaxPageSize = 5000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct { PageSize int `json:"pagesize,omitempty" url:"pagesize,omitempty"` Page int `json:"page,omitempty" url:"page,omitempty"` }
func NewPagination ¶
func NewPagination(pageSize int) Pagination
NewPagination creates a new Pagination struct with provided page size If page size is less than or equal to 0, it uses the default page size If page size is greater than the max page size, it uses the max page size
Click to show internal directories.
Click to hide internal directories.