pagination

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 3 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 struct {
	PageNumber int
	Cursor     string
	Limit      int
}

type CursorNavigationParser

type CursorNavigationParser struct{}

func (CursorNavigationParser) PagePageQuery

func (c CursorNavigationParser) PagePageQuery(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