Versions in this module Expand all Collapse all v0 v0.1.0 Oct 30, 2022 Changes in this version + const CookieName + const LoginPath + const LogoutPath + const RedirectPath + func Hash(password string) (string, error) + func RateLimit(qps float64, handler http.Handler) http.Handler + type Client struct + func New(hash string) *Client + func (c *Client) CheckXSRF(handler http.Handler, path ...string) http.Handler + func (c *Client) CustomLoginPage(favicon, title string, path ...string) http.Handler + func (c *Client) EnsureAuth(handler http.Handler) http.Handler + func (c *Client) IsAuth(r *http.Request) bool + func (c *Client) Login(paths ...string) http.Handler + func (c *Client) LoginPage(path ...string) http.Handler + func (c *Client) Logout(path ...string) http.Handler + func (c *Client) XSRF(path ...string) string