db

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LevelDB *leveldb.DB
)

Functions

func CloseDB

func CloseDB()

func DeleteNetworkInfo

func DeleteNetworkInfo(key string) error

func Iterator

func Iterator(fn func(info interface{}) error) error

func SetNetworkInfo

func SetNetworkInfo(key string, info interface{}) error

func SetupLevelDB

func SetupLevelDB(opt *LevelDBOptions) error

Types

type LevelDBOptions

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

func NewLevelDBOptions

func NewLevelDBOptions() *LevelDBOptions

func (*LevelDBOptions) AddFlags

func (opt *LevelDBOptions) AddFlags()

Jump to

Keyboard shortcuts

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