pagination

package
v0.0.0-...-72e33f6 Latest Latest
Warning

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

Go to latest
Published: Mar 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 Page

type Page struct {
	Page    int
	PerPage int
}

func (Page) Limit

func (p Page) Limit() int

func (Page) Offset

func (p Page) Offset() int

func (Page) Result

func (p Page) Result(totalItems int) PageResult

type PageResult

type PageResult struct {
	Page       int
	PerPage    int
	TotalPages int
	TotalItems int
}

func (PageResult) HasNext

func (p PageResult) HasNext() bool

func (PageResult) HasPrevious

func (p PageResult) HasPrevious() bool

func (PageResult) Next

func (p PageResult) Next() int

func (PageResult) Overflow

func (p PageResult) Overflow() bool

func (PageResult) Previous

func (p PageResult) Previous() int

func (PageResult) Seen

func (p PageResult) Seen() int

Jump to

Keyboard shortcuts

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