Documentation ¶
Index ¶
- type Filter
- type Meta
- type Model
- type OrderBy
- type Pagination
- func (p *Pagination[C]) GetCount() bool
- func (p *Pagination[C]) GetLimit() int
- func (p *Pagination[C]) GetOffset() int
- func (p *Pagination[C]) GetRows() []C
- func (p *Pagination[C]) GetTotalRows() int64
- func (p *Pagination[C]) SetLimit(limit int) *Pagination[C]
- func (p *Pagination[C]) SetOffset(offset int) *Pagination[C]
- func (p *Pagination[C]) SetRows(rows []C) *Pagination[C]
- func (p *Pagination[C]) SetTotalRows(totalRows int64) *Pagination[C]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta[C any] struct { *Pagination[C] Filter }
type Pagination ¶
func NewPagination ¶
func NewPagination[C any](limit, offset int, count bool) *Pagination[C]
func (*Pagination[C]) GetCount ¶
func (p *Pagination[C]) GetCount() bool
func (*Pagination[C]) GetLimit ¶
func (p *Pagination[C]) GetLimit() int
func (*Pagination[C]) GetOffset ¶
func (p *Pagination[C]) GetOffset() int
func (*Pagination[C]) GetRows ¶
func (p *Pagination[C]) GetRows() []C
func (*Pagination[C]) GetTotalRows ¶
func (p *Pagination[C]) GetTotalRows() int64
func (*Pagination[C]) SetLimit ¶
func (p *Pagination[C]) SetLimit(limit int) *Pagination[C]
func (*Pagination[C]) SetOffset ¶
func (p *Pagination[C]) SetOffset(offset int) *Pagination[C]
func (*Pagination[C]) SetRows ¶
func (p *Pagination[C]) SetRows(rows []C) *Pagination[C]
func (*Pagination[C]) SetTotalRows ¶
func (p *Pagination[C]) SetTotalRows(totalRows int64) *Pagination[C]
Click to show internal directories.
Click to hide internal directories.