Documentation ¶
Overview ¶
*
- Description:
- Author: Yihen.Liu
- Create: 2019-08-01
Index ¶
- Constants
- type Account
- type LevelDB
- func (this *LevelDB) Close()
- func (this *LevelDB) DeleteAccount(pubKey crypto.PubKey) error
- func (this *LevelDB) InsertOrUpdateAccount(pubKey crypto.PubKey, privKey crypto.PrivKey) (error, *Account)
- func (this *LevelDB) QueryAccount(label string) (*Account, error)
- func (this *LevelDB) QueryDefaultAccount() (*Account, error)
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 ¶
type LevelDB ¶
type LevelDB struct {
// contains filtered or unexported fields
}
func NewSocksDB ¶
func NewSocksDB(d *store.LevelDBStore) *LevelDB
func OpenSocksDB ¶
func (*LevelDB) InsertOrUpdateAccount ¶
func (*LevelDB) QueryDefaultAccount ¶
Click to show internal directories.
Click to hide internal directories.