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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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