pagination

package
v0.0.0-...-514f96b Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLimit = 10
	MaxLimit     = 100

	DefaultOffset = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ListRange

type ListRange struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
	Count  int `json:"count"`
}

func NewListRange

func NewListRange(params Params, count int) ListRange

type Params

type Params struct {
	Limit  uint64
	Offset uint64
}

Jump to

Keyboard shortcuts

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