Documentation ¶
Index ¶
- type Account
- type AccountCache
- func (ac *AccountCache) Accounts() Accounts
- func (ac *AccountCache) Add(new Account)
- func (ac *AccountCache) Close()
- func (ac *AccountCache) Delete(addr common.Address)
- func (ac *AccountCache) Find(addr common.Address) *Account
- func (ac *AccountCache) Has(addr common.Address) bool
- func (ac *AccountCache) Reload()
- type Accounts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Addr common.Address `json:"address"` // account address derived from the key. Path string `json:"path"` // key json file path. PublicKey string `json:"publicKey"` }
Account represents an fractal account.
type AccountCache ¶
AccountCache is a live index of all accounts in the keystore.
func NewAccountCache ¶
func NewAccountCache(keydir string) *AccountCache
NewAccountCache creates a account cache.
func (*AccountCache) Accounts ¶
func (ac *AccountCache) Accounts() Accounts
Accounts returns all accounts in cacahe.
func (*AccountCache) Delete ¶
func (ac *AccountCache) Delete(addr common.Address)
Delete delete a account in cache.
func (*AccountCache) Find ¶
func (ac *AccountCache) Find(addr common.Address) *Account
Find find account by address.
Click to show internal directories.
Click to hide internal directories.