Versions in this module Expand all Collapse all v0 v0.9.5 Jan 24, 2017 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 + Resources []string + Username string