storagemem

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package storagemem implements an in-memory storage Bucket.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImmutableReadBucket added in v0.9.0

func NewImmutableReadBucket(pathToData map[string][]byte) (storage.ReadBucket, error)

NewImmutableReadBucket returns a new immutable read-only in-memory bucket.

The data in the map will be directly used, and not copied. It should not be modified after passing the map to this function.

func NewReadWriteBucketCloser added in v0.9.0

func NewReadWriteBucketCloser() storage.ReadWriteBucketCloser

NewReadWriteBucketCloser returns a new in-memory bucket.

Types

This section is empty.

Jump to

Keyboard shortcuts

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