Documentation ¶
Index ¶
Constants ¶
View Source
const MaxPageSize = 10000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination[T schema.Tabler] struct { Query *gorm.DB Error error Size int Page int // contains filtered or unexported fields }
func (*Pagination[T]) Items ¶
func (p *Pagination[T]) Items() []T
func (*Pagination[T]) Load ¶
func (p *Pagination[T]) Load() *Pagination[T]
func (*Pagination[T]) Total ¶
func (p *Pagination[T]) Total() int64
Click to show internal directories.
Click to hide internal directories.