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.
Click to show internal directories.
Click to hide internal directories.