pagination

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paginator

type Paginator struct {
	// contains filtered or unexported fields
}

func NewPaginator

func NewPaginator(page, prePage, total int) *Paginator

func (*Paginator) GetLastPage

func (p *Paginator) GetLastPage() int

func (*Paginator) GetNextPage

func (p *Paginator) GetNextPage() int

func (*Paginator) GetOffset

func (p *Paginator) GetOffset() int

func (*Paginator) GetPage

func (p *Paginator) GetPage() int

func (*Paginator) GetPerPage

func (p *Paginator) GetPerPage() int

func (*Paginator) GetPrevPage

func (p *Paginator) GetPrevPage() int

func (*Paginator) GetTotal

func (p *Paginator) GetTotal() int

func (*Paginator) HasMore

func (p *Paginator) HasMore() bool

func (*Paginator) ToJSON

func (p *Paginator) ToJSON() ([]byte, error)

func (*Paginator) ToMap

func (p *Paginator) ToMap() map[string]any

Jump to

Keyboard shortcuts

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