middlewares

package
v0.0.0-...-159e443 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const UserCtxKey = "user"

UserCtxKey is a key name of user context

Variables

This section is empty.

Functions

func AuthenticationMiddleware

func AuthenticationMiddleware(db *gorm.DB) mux.MiddlewareFunc

AuthenticationMiddleware user access token

func JSONResponseMiddleware

func JSONResponseMiddleware(next http.Handler) http.Handler

JSONResponseMiddleware adds JSON headers to response

Types

This section is empty.

Jump to

Keyboard shortcuts

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