Documentation ¶
Index ¶
- type Batch
- type Store
- func (s *Store) Batch(ctx context.Context) storage.Batch
- func (s *Store) Close() (err error)
- func (s *Store) Count(key storage.Key) (int, error)
- func (s *Store) DB() *leveldb.DB
- func (s *Store) Delete(item storage.Item) error
- func (s *Store) Get(item storage.Item) error
- func (s *Store) GetSize(k storage.Key) (int, error)
- func (s *Store) Has(k storage.Key) (bool, error)
- func (s *Store) Iterate(q storage.Query, fn storage.IterateFn) error
- func (s *Store) Put(item storage.Item) error
- type Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func New ¶
New returns a new store the backed by leveldb. If path == "", the leveldb will run with in memory backend storage.
Click to show internal directories.
Click to hide internal directories.