Versions in this module Expand all Collapse all v0 v0.8.0 Aug 4, 2019 Changes in this version + var CSRFExemptPrefixes = []string + var Store = sessions.NewCookieStore([]byte(securecookie.GenerateRandomKey(64)), ...) + func CSRFExceptions(handler http.Handler) http.HandlerFunc + func EnforceViewOnly(next http.Handler) http.Handler + func GetContext(handler http.Handler) http.HandlerFunc + func JSONError(w http.ResponseWriter, c int, m string) + func RequireAPIKey(handler http.Handler) http.Handler + func RequireLogin(handler http.Handler) http.HandlerFunc + func RequirePermission(perm string) func(http.Handler) http.HandlerFunc + func Use(handler http.HandlerFunc, mid ...func(http.Handler) http.HandlerFunc) http.HandlerFunc