Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaginationRequest ¶
func New ¶
func New(page, pageSize int32) *PaginationRequest
New creates a new pagination request from the page and page size.
func NewRequest ¶
func NewRequest(page, pageSize int32) PaginationRequest
NewRequest creates a new pagination request (not pointer) from the page and page size
func Start ¶
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 ¶
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.