memory

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package memory provides an in memory implementation of the storage interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *slog.Logger) storage.Storage

New returns an in memory storage.

Types

type Config

type Config struct {
}

Config is an implementation of a storage configuration.

TODO(ericchiang): Actually define a storage config interface and have registration.

func (*Config) Open

func (c *Config) Open(logger *slog.Logger) (storage.Storage, error)

Open always returns a new in memory storage.

Jump to

Keyboard shortcuts

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