pagination

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

type Pagination struct {
	Offset, Limit, Total int
}

func (Pagination) FirstOnPage

func (p Pagination) FirstOnPage() int

func (Pagination) HasNextPage

func (p Pagination) HasNextPage() bool

func (Pagination) HasPreviousPage

func (p Pagination) HasPreviousPage() bool

func (Pagination) LastOnPage

func (p Pagination) LastOnPage() int

func (Pagination) MaxVisiblePages

func (p Pagination) MaxVisiblePages() int

func (Pagination) NextPage

func (p Pagination) NextPage() int

func (Pagination) Page

func (p Pagination) Page() int

func (Pagination) PageCap

func (p Pagination) PageCap() int

func (Pagination) PreviousPage

func (p Pagination) PreviousPage() int

func (Pagination) TotalPages

func (p Pagination) TotalPages() int

func (Pagination) UncappedTotalPages

func (p Pagination) UncappedTotalPages() int

Jump to

Keyboard shortcuts

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