Versions in this module Expand all Collapse all v1 v1.0.0 Mar 4, 2024 Changes in this version + func CheckAuth(authKeys []string, key string) (result bool, err error) + func NewApiKeysMiddleware(o AuthOptions) func(*web.C, http.Handler) http.Handler + func ReadAuthKeys(authFile string) []string + type ApiKeysMiddleware struct + func (a ApiKeysMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) + type AuthOptions struct + AuthFile string + BasicAuth bool + SiteName string + SitePath string + UnauthMethods []string