Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2022 v0.1.0 Jun 25, 2022 Changes in this version + type Auth interface + AuthenticateToken func(token, url string) error + ChangePassword func(oldPW, newPW string) error + CreateHandler func() (http.Handler, error) + NewToken func(pw string, duration time.Duration, endpoints []string) (string, error) + RevokeToken func(pw, token string) error + WrapHandler func(h http.Handler) http.Handler + func New(log logging.Logger, endpoint, pw string) (Auth, error) + func NewFromHash(log logging.Logger, endpoint string, pw password.Hash) Auth + type ChangePasswordArgs struct + NewPassword string + OldPassword string + type NewTokenArgs struct + Endpoints []string + type Password struct + Password string + type RevokeTokenArgs struct + type Token struct + Token string