pagination

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: GPL-3.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 Link struct {
	Path     string
	Number   string
	IsActive bool
}

type Pager

type Pager struct {
	CurrentUrl string

	Page  int64
	Limit int64
	Count int64

	MaxLinks int64

	FirstPath   string
	FirstNumber string

	LastPath   string
	LastNumber string

	HasPrevius bool

	PreviusPath   string
	PreviusNumber string

	HasMoreBefore bool

	HasMoreAfter bool
	HasNext      bool

	NextPath   string
	NextNumber string

	Links []Link
}

func NewPager

func NewPager() *Pager

func (*Pager) ToJSON

func (r *Pager) ToJSON() []byte

Jump to

Keyboard shortcuts

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