pagination

package
v0.0.0-...-6df70c7 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLimit = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

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

Pagination represents data for retrieving time related structures.

func NewPagination

func NewPagination(c *gin.Context) *Pagination

NewPagination returns a Pagination.

func (*Pagination) GetAfter

func (p *Pagination) GetAfter() int

GetAfter returns after.

func (*Pagination) GetBefore

func (p *Pagination) GetBefore() int

GetBefore return before.

func (*Pagination) GetLimit

func (p *Pagination) GetLimit() int

GetLimit returns limit.

Jump to

Keyboard shortcuts

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