account

package
v0.0.0-...-69e5406 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

*

  • Description:
  • Author: Yihen.Liu
  • Create: 2019-08-01

Index

Constants

View Source
const DB_DIR = "./db"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

func GetAccount

func GetAccount() *Account

func (*Account) GetPrivKey

func (this *Account) GetPrivKey() crypto.PrivKey

type LevelDB

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

func NewSocksDB

func NewSocksDB(d *store.LevelDBStore) *LevelDB

func OpenSocksDB

func OpenSocksDB(path string) (*LevelDB, error)

func (*LevelDB) Close

func (this *LevelDB) Close()

func (*LevelDB) DeleteAccount

func (this *LevelDB) DeleteAccount(pubKey crypto.PubKey) error

func (*LevelDB) InsertOrUpdateAccount

func (this *LevelDB) InsertOrUpdateAccount(pubKey crypto.PubKey, privKey crypto.PrivKey) (error, *Account)

func (*LevelDB) QueryAccount

func (this *LevelDB) QueryAccount(label string) (*Account, error)

func (*LevelDB) QueryDefaultAccount

func (this *LevelDB) QueryDefaultAccount() (*Account, error)

Jump to

Keyboard shortcuts

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