Documentation ¶
Overview ¶
Package bitcaskstore implements the blob.Store interface on a bitcask database.
Index ¶
- func Opener(_ context.Context, addr string) (blob.Store, error)
- type Options
- type Store
- func (s *Store) Close(_ context.Context) error
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Get(ctx context.Context, key string) ([]byte, error)
- func (s *Store) Len(ctx context.Context) (int64, error)
- func (s *Store) List(ctx context.Context, start string, f func(string) error) error
- func (s *Store) Put(ctx context.Context, opts blob.PutOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct{}
Options are configurations for a Store. A nil *Options is ready for use and provides default values as described.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the blob.Store interface on a bitcask database.
func New ¶
New creates a Store for a bitcask database at the specified path. If opts == nil, default settings are used as described on Options.
func (*Store) Close ¶
Close implements part of the blob.Store interface. It syncs and closes all of the data files in use by the database.
Click to show internal directories.
Click to hide internal directories.