Documentation ¶
Index ¶
- Variables
- type AccountCreator
- type Backend
- func (b *Backend) ImportRawKey(rawKey string, newAccountConfig interface{}) (accounts.Account, error)
- func (b *Backend) Lock(account accounts.Account) error
- func (b *Backend) NewAccount(newAccountConfig interface{}) (accounts.Account, error)
- func (b *Backend) SetPluginService(s plugin.Service) error
- func (b *Backend) Subscribe(_ chan<- accounts.WalletEvent) event.Subscription
- func (b *Backend) TimedUnlock(account accounts.Account, password string, duration time.Duration) error
- func (b *Backend) Wallets() []accounts.Wallet
Constants ¶
This section is empty.
Variables ¶
View Source
var BackendType = reflect.TypeOf(&Backend{})
Functions ¶
This section is empty.
Types ¶
type AccountCreator ¶
type AccountCreator interface { NewAccount(newAccountConfig interface{}) (accounts.Account, error) ImportRawKey(rawKey string, newAccountConfig interface{}) (accounts.Account, error) }
AccountCreator is the interface that wraps the plugin account creation methods. This interface is used to simplify the pluggable.Backend API available to the account plugin CLI and enables easier testing.
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func NewBackend() *Backend
func (*Backend) ImportRawKey ¶
func (*Backend) NewAccount ¶
func (*Backend) Subscribe ¶
func (b *Backend) Subscribe(_ chan<- accounts.WalletEvent) event.Subscription
Subscribe implements accounts.Backend, creating a new subscription that is a no-op and simply exits when the Unsubscribe is called
func (*Backend) TimedUnlock ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
testutils/mock_plugin
Package mock_plugin is a generated GoMock package.
|
Package mock_plugin is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.