pagination

package
v0.0.0-...-dc8ed20 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageSizeParam = "page_size"
	PageParam     = "page"
)

Variables

This section is empty.

Functions

func ConvertPageAndPageSizeToOffset

func ConvertPageAndPageSizeToOffset(pageSize, page int) int

func ConvertPageSizeAndOrderedColumnToSQL

func ConvertPageSizeAndOrderedColumnToSQL(pageSize, page int, orderedColumn string) (string, error)

func ExtractPaginationConfigFromRequest

func ExtractPaginationConfigFromRequest(req *http.Request, maxPage int) (int, int, error)

func ValidatePageParameters

func ValidatePageParameters(pageSize, page int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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