pagination

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Criteria

type Criteria = query.Page

type CursorNavigationParser

type CursorNavigationParser struct{}

func (CursorNavigationParser) ParsePageQuery added in v0.5.0

func (c CursorNavigationParser) ParsePageQuery(r *http.Request) (Criteria, error)
type PageNavigationParser struct{}
func (p PageNavigationParser) ParsePageQuery(r *http.Request) (Criteria, error)

type Params

type Params map[string]string

func (Params) Cursor

func (p Params) Cursor() string

func (Params) Limit

func (p Params) Limit() (int, error)

func (Params) PageNumber

func (p Params) PageNumber() (int, error)

Jump to

Keyboard shortcuts

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