walletmanager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: Apache-2.0 Imports: 10 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 is the wallet service.

func NewService

func NewService(fetcher backend.Fetcher, ruler backend.Ruler) *Service

NewService creates a new wallet service.

func (*Service) ListAccounts

func (s *Service) ListAccounts(ctx context.Context, req *pb.ListAccountsRequest) (*pb.ListAccountsResponse, error)

ListAccounts lists accounts given a path.

func (*Service) Lock

func (s *Service) Lock(ctx context.Context, req *pb.LockWalletRequest) (*empty.Empty, error)

Lock locks a wallet.

func (*Service) Unlock

func (s *Service) Unlock(ctx context.Context, req *pb.UnlockWalletRequest) (*empty.Empty, error)

Unlock unlocks a wallet.

Jump to

Keyboard shortcuts

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