Documentation ¶
Index ¶
- type Storage
- func (storage *Storage) Close()
- func (storage *Storage) Delete(key []byte) error
- func (storage *Storage) DeleteAll() error
- func (storage *Storage) DeleteAllWithPrefix(prefix string) error
- func (storage *Storage) Get(key []byte) ([]byte, error)
- func (storage *Storage) GetAll() (map[string]string, error)
- func (storage *Storage) GetAllWithPrefix(prefix string) (map[string]string, error)
- func (storage *Storage) Has(key []byte) (bool, error)
- func (storage *Storage) Put(key []byte, data []byte) error
- func (storage *Storage) Run() error
- func (storage *Storage) SetDbPath(dbPath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a struct containing a database and its address
func (*Storage) Close ¶
func (storage *Storage) Close()
Close closes the underlying LevelDB connection
func (*Storage) DeleteAllWithPrefix ¶
DeleteAllWithPrefix deletes all entries starting with a prefix
func (*Storage) GetAllWithPrefix ¶
GetAllWithPrefix returns all entries in the database with the specified prefix
Click to show internal directories.
Click to hide internal directories.