Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct { // Number is the page number that starts with 1 Number, Size uint32 }
Page contains all the pagination parameters
func NormalizePagination ¶
NormalizePagination returns a struct with normalized pagination parameters
type Resolver ¶
type Resolver interface { // Resolve takes the HTTP request and resolves a parameters value by the given name Resolve(*http.Request, string) string }
Resolver is able to resolve a parameter value by name
func NewChiResolver ¶
func NewChiResolver() Resolver
NewChiResolver returns a parameter resolves that uses chi-based resolver
Click to show internal directories.
Click to hide internal directories.