Documentation ¶
Index ¶
- type Page
- func FromOtherPage[SrcPage, DstPage any](srcPage Page[SrcPage], mapFunc func(SrcPage) DstPage) Page[DstPage]
- func ListPaginated[T any](ctx context.Context, db *sql.DB, q *goqu.SelectDataset, pageReq *PageRequest, ...) (Page[T], error)
- func NewPage[T any](content []T, page, size, totalElements uint) Page[T]
- type PageRequest
- type RowMapper
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageRequest ¶
type PageRequest struct { Page uint `in:"query=page"` Size uint `in:"query=size"` Sort []string `in:"query=sort"` }
func (PageRequest) ApplyPagination ¶
func (p PageRequest) ApplyPagination(q *goqu.SelectDataset) *goqu.SelectDataset
Click to show internal directories.
Click to hide internal directories.