Documentation
¶
Overview ¶
Package memstore is the in-memory reference implementation of pkg/storage. It is goroutine-safe but not persistent. Useful for tests and cmd/authletd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the umbrella in-memory storage. It composes one struct per sub-store and exposes each via the storage.Storage interface.
func New ¶
func New() *Store
New constructs an empty in-memory Store with all sub-stores initialised.
func (*Store) Clients ¶
func (s *Store) Clients() storage.ClientStore
Clients returns the in-memory ClientStore.
func (*Store) RefreshTokens ¶
func (s *Store) RefreshTokens() storage.RefreshTokenStore
RefreshTokens returns the in-memory RefreshTokenStore.
func (*Store) SigningKeys ¶
func (s *Store) SigningKeys() storage.SigningKeyStore
SigningKeys returns the in-memory SigningKeyStore.
Click to show internal directories.
Click to hide internal directories.