leveldb

package
v0.0.0-...-b5792bf Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	PrivateKey     string
	CompressPubkey string
}

type Keys

type Keys struct {
	// contains filtered or unexported fields
}

func NewKeyStore

func NewKeyStore(path string) (*Keys, error)

func (*Keys) GetPrivKey

func (k *Keys) GetPrivKey(publicKey string) (string, bool)

func (*Keys) StoreKeys

func (k *Keys) StoreKeys(keyList []Key) bool

type LevelStore

type LevelStore struct {
	*leveldb.DB
}

func NewLevelStore

func NewLevelStore(path string) (*LevelStore, error)

* * @brief: NewLevelStore * @param: path string db文件路径 * @return: *LevelStore, error

func (*LevelStore) Delete

func (db *LevelStore) Delete(key []byte) error

func (*LevelStore) Get

func (db *LevelStore) Get(key []byte) ([]byte, error)

func (*LevelStore) Put

func (db *LevelStore) Put(key, value []byte) error

Jump to

Keyboard shortcuts

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