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.
Types ¶
type ReadBucketBuilder ¶
type ReadBucketBuilder interface { storage.WriteBucket // ToReadBucket returns a ReadBucket for the current data in the WriteBucket. // // No further calls can be made to the ReadBucketBuilder after this call. // This is functionally equivalent to a Close in other contexts. ToReadBucket() (storage.ReadBucket, error) }
ReadBucketBuilder builds ReadBuckets.
func NewReadBucketBuilder ¶
func NewReadBucketBuilder() ReadBucketBuilder
NewReadBucketBuilder returns a new in-memory ReadBucketBuilder.
Click to show internal directories.
Click to hide internal directories.