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.
Click to show internal directories.
Click to hide internal directories.