Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBucketNotFound = errors.New("ERR_BUCKET_NOT_FOUND") ErrEntryNotFound = errors.New("ERR_ENTRY_NOT_FOUND") )
Errors
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Get(ctx context.Context, bucket, key string) (out []byte, err error) Del(ctx context.Context, bucket, key string) (out []byte, err error) Put(ctx context.Context, bucket, key string, in []byte) (out []byte, err error) List(ctx context.Context, bucket string) (list [][]byte, err error) }
Backend the backend interface
Click to show internal directories.
Click to hide internal directories.