Documentation ¶
Overview ¶
Package middleware implements various middlewares specific for long-season application usage.
Index ¶
- func Debug(c models.Config) func(http.Handler) http.Handler
- func DeviceID(next http.Handler) http.Handler
- func Private(renewer session.Renewer) func(http.Handler) http.Handler
- func RedirectLoggedIn(renewer session.Renewer) func(http.Handler) http.Handler
- func URLParamInjection(param string) func(http.Handler) http.Handler
- func UpdateAuth(c *models.Config) func(http.Handler) http.Handler
- func UserID(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶ added in v0.4.0
Debug injects information about application debug mode to every http request's context.
func RedirectLoggedIn ¶
RedirectLoggedIn redirects logged in users to homepage.
func URLParamInjection ¶
URLParamInjection injects given chi parameter into request context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.