Versions in this module Expand all Collapse all v0 v0.0.3 Jan 29, 2023 Changes in this version + func NewAuthToken(t *Token) *authtoken v0.0.2 Jan 29, 2023 Changes in this version + const ScopeRead + const ScopeWrite + func New(pool Pool, opts ...Option) Auth + type Option func(*auth) error + type Token struct + Expire time.Time + Key string + Name string + Scope []string + Time time.Time + Type TokenType + Value string + func NewByte16(duration time.Duration, scope ...string) *Token + func (t *Token) IsScope(scopes ...string) bool + func (t *Token) IsValid() bool + func (t *Token) MarshalJSON() ([]byte, error) + func (t *Token) String() string + type TokenType string + const TokenByte16 + type TokenUpdateExpiry struct + Expire time.Time + Time time.Time + type TokenUpdateScope struct + Scope []string + Time time.Time + type TokenUpdateTime struct + Time time.Time