middleware

package
v0.0.0-...-49abefd Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package middleware contains custom http request middlewares

Index

Constants

View Source
const (
	CtxAccountID key = "CtxAccountID"
)

Keys used to set request context values

Variables

This section is empty.

Functions

func NewAuthenticated

func NewAuthenticated(jwtH *jwt.Handler) func(http.Handler) http.Handler

NewAuthenticated creates a middleware that requires JWT Authorization Token Header

Types

This section is empty.

Jump to

Keyboard shortcuts

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