ram

package
v0.0.0-...-99157af Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ram defines a RAM-based apikey store. It is recommended this only be used for testing, because NOTHING IS PERSISTED TO DISK!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store[T common.IKey[M], M common.IMetadata] struct {
	// contains filtered or unexported fields
}

Store implements a VOLATILE RAM-based keystore. This should only be used for testing.

func (*Store[T, M]) Load

func (s *Store[T, M]) Load(name string) (T, error)

Load implements store.Store.

func (*Store[T, M]) Store

func (s *Store[T, M]) Store(name string, key T) error

Store implements store.Store.

Jump to

Keyboard shortcuts

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