chi

package
v0.0.0-...-d73a121 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UrlParamAndJWTIndexIsExact

func UrlParamAndJWTIndexIsExact(param, jwtIndex string, notAuthorizedHandler http.HandlerFunc) func(next http.Handler) http.Handler

UrlParamAndJWTIndexIsExact checks if the value a url param is exactly the same as the value a the jwt payload index.

Note: the jwt token is gotten from the authorization bearer header.

func UrlParamsShouldNotBeEmpty

func UrlParamsShouldNotBeEmpty(notFoundHandler http.HandlerFunc, params ...string) func(next http.Handler) http.Handler

UrlParamsShouldNotBeEmpty returns a http middleware that checks if some url parameters are not empty.

If one of the parameter is empty it returns a 404 error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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