middleware

package
v0.0.0-...-2e7266e Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(d db.Conn, next http.Handler) http.Handler

Auth checks for the Authorization header, decodes the token and adds the user to request context.

func LogReq

func LogReq(next http.Handler) http.Handler

LogReq is a middleware function to log the http requests that the application gets

Types

This section is empty.

Jump to

Keyboard shortcuts

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