memfetcher

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service contains an in-memory cache of wallets and accounts.

func New

func New(stores []e2wtypes.Store) (*Service, error)

New creates a new in-memory fetcher.

func (*Service) FetchAccount

func (s *Service) FetchAccount(path string) (e2wtypes.Wallet, e2wtypes.Account, error)

FetchAccount fetches the account given its name.

func (*Service) FetchAccountByKey

func (s *Service) FetchAccountByKey(pubKey []byte) (e2wtypes.Wallet, e2wtypes.Account, error)

FetchAccountByKey fetches the account given its public key.

func (*Service) FetchWallet

func (s *Service) FetchWallet(path string) (e2wtypes.Wallet, error)

FetchWallet fetches the wallet.

Jump to

Keyboard shortcuts

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