Documentation ¶
Overview ¶
Package leveldbstore implements the blob.Store interface using LevelDB.
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 {
Create bool // create the database if it does not exist
}
Options provide optional settings for opening and creating a Store.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
A Store implements the blob.Store interface backed by a LevelDB file.
Click to show internal directories.
Click to hide internal directories.