middleware

package
v0.0.0-...-1a15228 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWT

func JWT(method http.Handler) http.Handler

func NewLogRequestMiddleware

func NewLogRequestMiddleware(l *log.Logger) *logRequestMiddleWare

Types

type JWTClaimsKey

type JWTClaimsKey struct{}

just created a key to be used to get save and retrieve the jwt claims. String can also be used instead but using structs is preferred.

type LogKey

type LogKey struct{}

just created a key to be used to get save and retrieve the json value. String can also be used instead but using structs is preferred.

Jump to

Keyboard shortcuts

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