Versions in this module Expand all Collapse all v1 v1.1.1 Oct 30, 2021 v1.1.0 Oct 25, 2021 Changes in this version type Handler + Queues *queue.Set v1.0.0 Apr 20, 2021 Changes in this version + func Alert(sess *sessions.Session) template.Alert + func CanAccessResource(db *sqlx.DB, name string, r *http.Request, get databaseFunc) (bool, error) + func EncodeToLink(p database.Paginator, r *http.Request) string + func HTMLError(w http.ResponseWriter, message string, status int) + func JSONError(w http.ResponseWriter, message string, status int) + func PageURL(url *url.URL, addr string, page int64) string + type Gate func(u *user.User, r *http.Request) (*http.Request, bool, error) + type Handler struct + DB *sqlx.DB + Log *log.Logger + SMTP struct{ ... } + SecureCookie *securecookie.SecureCookie + Store sessions.Store + Tokens *oauth2.TokenStore + Users *user.Store + func (h *Handler) Redirect(w http.ResponseWriter, r *http.Request, url string) + func (h *Handler) RedirectBack(w http.ResponseWriter, r *http.Request) + func (h *Handler) SaveMiddleware(handler http.Handler) http.Handler + func (h *Handler) Session(r *http.Request) (*sessions.Session, func(*http.Request, http.ResponseWriter)) + func (h Handler) UserFromCookie(r *http.Request) (*user.User, bool, error) + func (h Handler) UserFromRequest(w http.ResponseWriter, r *http.Request) (*user.User, bool, error) + func (h Handler) UserFromToken(r *http.Request) (*user.User, bool, error) + type Middleware struct + func (h Middleware) Auth(next http.Handler) http.Handler + func (h Middleware) Gate(gates ...Gate) mux.MiddlewareFunc + func (h Middleware) Guest(next http.Handler) http.Handler