middleware

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const PagingParamsKey = "paging"

Variables

This section is empty.

Functions

func PagingMiddleware

func PagingMiddleware() http.HandlerFunc

PagingMiddleware extracts paging query params and stores them in the context.

Types

type PagingParams

type PagingParams struct {
	Page   int
	Limit  int
	Offset int
}

PagingParams holds paging details.

Jump to

Keyboard shortcuts

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