Help us shape the future of Go! Take the 2026 Go Developer Survey

middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired(h httprouter.Handle, env *utils.Env) httprouter.Handle

AuthRequired is a middleware handler that makes sure the request Contains a bearer authorization token and places the userId in the context if the token is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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