package
0.7.0
Repository: https://github.com/tokenized/pkg.git
Documentation: pkg.go.dev

# Functions

CreateStorage builds an appropriate Storage from the details.
CreateStreamStorage builds an appropriate Storage from the details.
No description provided by the author
No description provided by the author
NewConfig returns a new Config with AWS style options.
NewFilesystemStorage implements the Storage interface for simple S3 like file system interactions.
MockStorage creates a new mock storage.
NewOptions returns an Options struct with sane defaults set.
NewRedisStorage return a new RedisStorage.
NewS3Storage creates a new S3Storage with a new aws.Session.
NewS3StorageWithSession returns a new S3Storage with a given AWS Session.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

DefaultMaxRetries is the number of retries for a write operation.
DefaultRetryDelay is the number of milliseconds to wait before attempting a retry after a failure.
S3ListLimit seems to need to be 1000.

# Variables

ErrNotFound should be returned if the file was not found.
ErrUnknownPayload is returned if an expected payload is returned by the store.
ErrUnsupported is returned if the Storage does not implemnent a feature.

# Structs

Buffer implements io.Writer, io.Reader, io.Seeker, and io.Closer.
Config holds all configuration for the Storage.
FilesystemStorage implements the Storage interface for interacting with the local filesystem.
MockStorage implements the Storage interface for but just holds the data in memory.
Options for writing data.
RedisStorage implements a Storage backed by Redis.
S3Storage implements the Storage interface for interacting with AWS S3.

# Interfaces

Clearer interface is for clearing out data matching the query args.
No description provided by the author
No description provided by the author
No description provided by the author
List interface is for returning a list of items in the store from the given key.
No description provided by the author
Reader interface is for retrieving items from the store.
ReadWriter interface combines the Reader and Writer interface.
Remover interface is for removing an item from storage.
Searcher interface is for retrieving multiple items.
No description provided by the author
Storage is the interface combining all storage interfaces.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Writer interface is for adding or updating an item to the store.