Versions in this module Expand all Collapse all v1 v1.0.1 Nov 9, 2023 v1.0.0 Nov 9, 2023 Changes in this version + func CreateLevelDB(path string, errorIfExist bool) error + func CreateLevelDBWithInitData(path, key string, data []byte, errorIfExist bool) error + type LevelDBUtils struct + func OpenLevelDB(path string, readonly bool) (*LevelDBUtils, error) + func (l *LevelDBUtils) Close() error + func (l *LevelDBUtils) CompactFirstKey() error + func (l *LevelDBUtils) CompactKey(key []byte) error + func (l *LevelDBUtils) Get(key []byte) (value []byte, err error) + func (l *LevelDBUtils) GetSize() (int, error) + func (l *LevelDBUtils) ListAll() (map[string]string, error) + func (l *LevelDBUtils) ListAllKeys() ([]string, error) + func (l *LevelDBUtils) Put(key []byte, val []byte) error