response

package
v0.0.0-...-fd2987a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoBearerToken      = errors.New("no bearer token passed")
	ErrInvalidBearerToken = errors.New("invalid bearer token")
)

Functions

func JWTAuthenticator

func JWTAuthenticator(next http.Handler) http.Handler

JWTAuthenticator is a middleware intended to be used as a gatekeeper for routes which need authentication. This DOES NOT handle authorization!

func StartServer

func StartServer()

StartServer sets up everything needed to run the server and then runs it.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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