Versions in this module Expand all Collapse all v1 v1.2.0 Nov 21, 2026 v1.1.0 Nov 8, 2026 Changes in this version + var ErrNoToken = errors.New("no token") + func Handler(cfg Config) http.Handler + func LoadOrCreateKey(path string) (string, error) + type Config struct + Key string + Logf func(format string, args ...any) + Project string + Token TokenSource + Upstream *url.URL + type TokenFunc func() (string, error) + func (f TokenFunc) Token() (string, error) + type TokenSource interface + Token func() (string, error) + func CachedToken(source TokenSource, ttl time.Duration) TokenSource + func EnvToken(name string) TokenSource + func FileToken(path string) TokenSource + func FirstToken(sources ...TokenSource) TokenSource + func KeychainToken(service, account string) TokenSource