memory

package
v0.0.0-...-08e2f75 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 5 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 log.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 log.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