db

package
v0.0.0-...-afe9103 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustOpenDB

func MustOpenDB(dbDir string) *leveldb.DB

Types

type AddressToCMAddressDB

type AddressToCMAddressDB struct {
	DB *leveldb.DB
}
var (
	DefaultAddressToCMAddressDBDir = "/.cookiemonster/AddressToCmAddressDB.db"
	DefautlAddressToCMAddressDB    AddressToCMAddressDB
)

func (AddressToCMAddressDB) DeleteCMAddressForAddress

func (d AddressToCMAddressDB) DeleteCMAddressForAddress(address string) error

func (AddressToCMAddressDB) GetCMAddressForAddress

func (d AddressToCMAddressDB) GetCMAddressForAddress(address string) (string, error)

func (AddressToCMAddressDB) SetCMAddressForAddress

func (d AddressToCMAddressDB) SetCMAddressForAddress(address string, registeredAccountAddress string) error

type AddressToCMKeyDB

type AddressToCMKeyDB struct {
	DB *leveldb.DB
}
var (
	DefaultAddressToCMKeyNameDBDir = "/.cookiemonster/AddressToCMKeyName.db"
	DefaultAddressToCMKeyNameDB    AddressToCMKeyDB
)

func (AddressToCMKeyDB) DeleteCMKeyNameForAddress

func (d AddressToCMKeyDB) DeleteCMKeyNameForAddress(address string) error

func (AddressToCMKeyDB) GetCMKeyNameForAddress

func (d AddressToCMKeyDB) GetCMKeyNameForAddress(address string) (string, error)

func (AddressToCMKeyDB) SetCMKeyNameForAddress

func (d AddressToCMKeyDB) SetCMKeyNameForAddress(address string, keyName string) error

Jump to

Keyboard shortcuts

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