Documentation ¶
Index ¶
- type Factory
- func (rf *Factory) GetTopBlock() (int64, error)
- func (rf *Factory) GetWalletWithAccessKey(ctx context.Context, apiKey, apiSecret string) (wallet.DataWallet, error)
- func (rf *Factory) GetWalletWithCredentials(ctx context.Context, userID, secret string) (wallet.DataWallet, error)
- func (rf *Factory) GetWalletWithTokenAndKey(ctx context.Context, jwtToken string, managedKey *model.AESKey) (wallet.DataWallet, error)
- func (rf *Factory) RegisterAccount(ctx context.Context, acctTemplate *account.Account, passwd string, ...) (wallet.DataWallet, *wallet.RecoveryDetails, error)
- type IndexClientSourceFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewWalletFactory ¶
func NewWalletFactory(url string, indexClientSourceFn IndexClientSourceFn, accountCacheLifeSpan time.Duration) (*Factory, error)
NewWalletFactory creates a new data wallet factory. This factory can instantiate data wallets that interact with MetaLocker node using API.
func (*Factory) GetTopBlock ¶
func (*Factory) GetWalletWithAccessKey ¶
func (*Factory) GetWalletWithCredentials ¶
func (*Factory) GetWalletWithTokenAndKey ¶
func (*Factory) RegisterAccount ¶
type IndexClientSourceFn ¶
type IndexClientSourceFn func(ctx context.Context, userID string, httpCaller *caller.MetaLockerHTTPCaller) (index.Client, error)
func WithIndexClient ¶
func WithIndexClient(indexClient index.Client) IndexClientSourceFn
Click to show internal directories.
Click to hide internal directories.