middleware

package
v0.0.0-...-509c4cf Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package middleware defines possible middleware that can be used by the router.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(req http.HandlerFunc, adminCheck bool) http.HandlerFunc

Auth is a simple authentication middleware with an option to check for if the user is an admin or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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