package
2.1.0+incompatible
Repository: https://github.com/thethingsnetwork/go-account-lib.git
Documentation: pkg.go.dev

# Functions

ConstStore creates a TokensStore that always returns the same token.
DirStore creates a filestore that stores tokens in the specified directory.
DirStoreWithFormat creates a filestore that stores tokens in the specified directory under with a custom filename.
FileStore returns a TokenStore that stores the tokens in a file.
FileStoreWithNameFn creates a filestore that stores tokens in the specified directory under with a custom filename.
HTTPManager creates a new token manager that uses the specified store to store and retrieve tokens.
MemoryStore returns a new TokenStore that stores the tokens in memory.
RedisStore returns a TokenStore that stores tokens in redis.
RestrictScope requests a new token with a different, more specific scope.

# Constants

TTLMargin is the margin to expire the tokens by token will expire a bit too soon in the store, by this margin.

# Variables

NullStore is a TokenStore that does not store tokens at all.

# Structs

HTTPError is an error that arises from HTTP.

# Interfaces

Manager represent all types that can manage tokens.
TokenStore is the interface of all the token storage engines.