Versions in this module Expand all Collapse all v0 v0.11.0 Nov 16, 2018 Changes in this version + type BasicAuth struct + Next httpserver.Handler + Rules []Rule + SiteRoot string + func (a BasicAuth) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) + type PasswordMatcher func(pw string) bool + func GetHtpasswdMatcher(filename, username, siteRoot string) (PasswordMatcher, error) + func PlainMatcher(passw string) PasswordMatcher + type Rule struct + Password func(string) bool + Realm string + Resources []string + Username string