Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines a RediS3 client
func (*Client) Get ¶
func (c *Client) Get(key string, value interface{}) (KeyMetadata, error)
Get TBD
type KeyMetadata ¶
KeyMetadata defines RediS3 key matadata which provides some useful information about the stored object.
type Options ¶
type Options struct {
// AWS S3 bucket to be selected as database persistent storage.
Bucket string
// When AutoCreateBucket is set to true the client will try to create the
// the AWS S3 bucket if it doesn't exist.
// Of course, AWS credentials/instance profile requires proper permissions
// so the client can create the bucket in S3.
// Default is false.
AutoCreateBucket bool
// AWS Region where S3 bucket is located/created.
Region string
// AWS API Endpoint
Endpoint string
// Timeout defines S3 upload timeout in seconds.
// If not defined or set to 0, there is no timeout.
Timeout int
// EnforceConsistency enables key locking while modifying keys.
// This increases the number of requests to AWS S3 API and decreases
// performance signlificantly but consistency is warranted when several
// clients are modifying same key.
// Default is false.
EnforceConsistency bool
// contains filtered or unexported fields
}
Options defines RediS3 client option
Click to show internal directories.
Click to hide internal directories.