paginator

package
v0.0.0-...-acc84cd Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 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 {
	CurrentPage int
	PerPage     int
	TotalCount  int
}

func (*Paginator) HasNextPage

func (p *Paginator) HasNextPage() bool

func (*Paginator) HasPreviousPage

func (p *Paginator) HasPreviousPage() bool

func (*Paginator) NextPage

func (p *Paginator) NextPage() int

func (*Paginator) Offset

func (p *Paginator) Offset() int

func (*Paginator) PreviousPage

func (p *Paginator) PreviousPage() int

func (*Paginator) TotalPages

func (p *Paginator) TotalPages() int

Jump to

Keyboard shortcuts

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