Documentation ¶
Index ¶
- func NewBatch() *batch
- type DB
- type SerialDB
- func (s *SerialDB) Close() error
- func (s *SerialDB) Destroy() error
- func (s *SerialDB) Get(key []byte) ([]byte, error)
- func (s *SerialDB) Has(key []byte) error
- func (s *SerialDB) Init() error
- func (s *SerialDB) IsInterfaceNil() bool
- func (s *SerialDB) Put(key, val []byte) error
- func (s *SerialDB) Remove(key []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB holds a pointer to the leveldb database and the path to where it is stored.
func NewDB ¶
func NewDB(path string, batchDelaySeconds int, maxBatchSize int, maxOpenFiles int) (s *DB, err error)
NewDB is a constructor for the leveldb persister It creates the files in the location given as parameter
func (*DB) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
type SerialDB ¶
type SerialDB struct {
// contains filtered or unexported fields
}
SerialDB holds a pointer to the leveldb database and the path to where it is stored.
func NewSerialDB ¶
func NewSerialDB(path string, batchDelaySeconds int, maxBatchSize int, maxOpenFiles int) (s *SerialDB, err error)
NewSerialDB is a constructor for the leveldb persister It creates the files in the location given as parameter
func (*SerialDB) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
Click to show internal directories.
Click to hide internal directories.