Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaginationRequest ¶
func NewRequest ¶
func NewRequest(page, pageSize int32) PaginationRequest
func Start ¶ added in v0.12.0
func Start(pageSize ...int32) *PaginationRequest
Start creates a new PaginationRequest that starts at the first page. You can provide an optional pageSize argument. If none is provided, 15 is used. All arguments apart from the first one are ignored.
func (*PaginationRequest) Advance ¶ added in v0.12.0
func (pr *PaginationRequest) Advance() *PaginationRequest
Advance returns a new pagination request with the page incremented by 1
func (*PaginationRequest) ApplyToSelect ¶
func (pr *PaginationRequest) ApplyToSelect(sb *squirrel.SelectBuilder) *squirrel.SelectBuilder
func (*PaginationRequest) CalculatePages ¶
func (pr *PaginationRequest) CalculatePages(count int) int32
func (*PaginationRequest) Offset ¶
func (pr *PaginationRequest) Offset() uint64
Click to show internal directories.
Click to hide internal directories.