memstore

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

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) Codes

func (s *Store) Codes() storage.CodeStore

Codes returns the in-memory CodeStore.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL