Documentation ¶
Index ¶
- Variables
- func API(next http.Handler) http.Handler
- func AdminArea(next http.Handler) http.Handler
- func Database(db *sqlx.DB) func(next http.Handler) http.Handler
- func Downtime(http.Handler) http.Handler
- func Golfer(next http.Handler) http.Handler
- func GolferArea(next http.Handler) http.Handler
- func GolferInfo(next http.Handler) http.Handler
- func Logger(next http.Handler) http.Handler
- func Session(next http.Handler) http.Handler
- func Static(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewWrapResponseWriter = middleware.NewWrapResponseWriter Recoverer = middleware.Recoverer RedirectSlashes = middleware.RedirectSlashes WithValue = middleware.WithValue )
Re-export the upstream middleware we use via this namespace.
Functions ¶
func GolferArea ¶
GolferArea enforces that a golfer is logged in.
func GolferInfo ¶
GolferInfo adds the GolferInfo object handle to the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.