storage

package
v0.0.0-...-5008a81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	DB *leveldb.DB
}

func (*Storage) Close

func (s *Storage) Close()

func (*Storage) Delete

func (s *Storage) Delete(key []byte) error

func (*Storage) Get

func (s *Storage) Get(key []byte) ([]byte, error)

func (*Storage) Init

func (s *Storage) Init(storage_path string)

func (*Storage) Put

func (s *Storage) Put(key []byte, value []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL