Documentation ¶
Overview ¶
Package storagemem implements an in-memory storage Bucket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadBucket ¶
func NewReadBucket(pathToData map[string][]byte) (storage.ReadBucket, error)
NewReadBucket returns a new ReadBucket.
func NewReadWriteBucket ¶ added in v1.0.0
func NewReadWriteBucket() storage.ReadWriteBucket
NewReadWriteBucket returns a new in-memory ReadWriteBucket. Deprecated: Use NewReadWriteBucketWithOptions without any options.
func NewReadWriteBucketWithOptions ¶ added in v1.10.0
func NewReadWriteBucketWithOptions(opts ...Option) (storage.ReadWriteBucket, error)
NewReadWriteBucketWithOptions returns a new in-memory ReadWriteBucket. Errors are returned with invalid options.
Types ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package internal splits out ImmutableObject into a separate package from storagemem to make it impossible to modify ImmutableObject via direct field access.
|
Package internal splits out ImmutableObject into a separate package from storagemem to make it impossible to modify ImmutableObject via direct field access. |
Click to show internal directories.
Click to hide internal directories.