base

package
v0.0.0-...-39e3969 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL