Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxPageSize = 100 DefaultPageSize = 20 )
View Source
const ( MinPageNumber = 1 MinPageSize = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Direction ¶
type Direction int
Direction is sort direction when ordering
const ( SortASC Direction SortDESC )
type Paginator ¶
Paginator is basic struct contains pagination information
func (*Paginator) CountPageTotal ¶
CountPageTotal is setter of Paginator.Page.Total by counting total page number
func (Paginator) GenGormTransaction ¶
GenGormTransaction generate GORMv2 sql Transaction (gorm.DB) for paging
func (*Paginator) LimitPageTotal ¶
func (pgntr *Paginator) LimitPageTotal()
Click to show internal directories.
Click to hide internal directories.