Documentation
¶
Index ¶
- func RegisterAccountManagerServer(s *grpc.Server, srv AccountManagerServer)
- func RegisterSignerServer(s *grpc.Server, srv SignerServer)
- func RegisterWalletManagerServer(s *grpc.Server, srv WalletManagerServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetName() string
- func (m *Account) GetPublicKey() []byte
- func (m *Account) GetUuid() []byte
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type AccountManagerClient
- type AccountManagerServer
- type ListAccountsRequest
- func (*ListAccountsRequest) Descriptor() ([]byte, []int)
- func (m *ListAccountsRequest) GetPath() string
- func (*ListAccountsRequest) ProtoMessage()
- func (m *ListAccountsRequest) Reset()
- func (m *ListAccountsRequest) String() string
- func (m *ListAccountsRequest) XXX_DiscardUnknown()
- func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAccountsRequest) XXX_Merge(src proto.Message)
- func (m *ListAccountsRequest) XXX_Size() int
- func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error
- type ListAccountsResponse
- func (*ListAccountsResponse) Descriptor() ([]byte, []int)
- func (m *ListAccountsResponse) GetAccounts() []*Account
- func (*ListAccountsResponse) ProtoMessage()
- func (m *ListAccountsResponse) Reset()
- func (m *ListAccountsResponse) String() string
- func (m *ListAccountsResponse) XXX_DiscardUnknown()
- func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAccountsResponse) XXX_Merge(src proto.Message)
- func (m *ListAccountsResponse) XXX_Size() int
- func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error
- type LockAccountRequest
- func (*LockAccountRequest) Descriptor() ([]byte, []int)
- func (m *LockAccountRequest) GetAccount() string
- func (*LockAccountRequest) ProtoMessage()
- func (m *LockAccountRequest) Reset()
- func (m *LockAccountRequest) String() string
- func (m *LockAccountRequest) XXX_DiscardUnknown()
- func (m *LockAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockAccountRequest) XXX_Merge(src proto.Message)
- func (m *LockAccountRequest) XXX_Size() int
- func (m *LockAccountRequest) XXX_Unmarshal(b []byte) error
- type LockWalletRequest
- func (*LockWalletRequest) Descriptor() ([]byte, []int)
- func (m *LockWalletRequest) GetWallet() string
- func (*LockWalletRequest) ProtoMessage()
- func (m *LockWalletRequest) Reset()
- func (m *LockWalletRequest) String() string
- func (m *LockWalletRequest) XXX_DiscardUnknown()
- func (m *LockWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockWalletRequest) XXX_Merge(src proto.Message)
- func (m *LockWalletRequest) XXX_Size() int
- func (m *LockWalletRequest) XXX_Unmarshal(b []byte) error
- type SignRequest
- func (*SignRequest) Descriptor() ([]byte, []int)
- func (m *SignRequest) GetAccount() string
- func (m *SignRequest) GetData() []byte
- func (m *SignRequest) GetDomain() uint64
- func (*SignRequest) ProtoMessage()
- func (m *SignRequest) Reset()
- func (m *SignRequest) String() string
- func (m *SignRequest) XXX_DiscardUnknown()
- func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignRequest) XXX_Merge(src proto.Message)
- func (m *SignRequest) XXX_Size() int
- func (m *SignRequest) XXX_Unmarshal(b []byte) error
- type SignResponse
- func (*SignResponse) Descriptor() ([]byte, []int)
- func (m *SignResponse) GetSignature() []byte
- func (*SignResponse) ProtoMessage()
- func (m *SignResponse) Reset()
- func (m *SignResponse) String() string
- func (m *SignResponse) XXX_DiscardUnknown()
- func (m *SignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignResponse) XXX_Merge(src proto.Message)
- func (m *SignResponse) XXX_Size() int
- func (m *SignResponse) XXX_Unmarshal(b []byte) error
- type SignerClient
- type SignerServer
- type UnimplementedAccountManagerServer
- type UnimplementedSignerServer
- type UnimplementedWalletManagerServer
- func (*UnimplementedWalletManagerServer) ListAccounts(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error)
- func (*UnimplementedWalletManagerServer) Lock(ctx context.Context, req *LockWalletRequest) (*empty.Empty, error)
- func (*UnimplementedWalletManagerServer) Unlock(ctx context.Context, req *UnlockWalletRequest) (*empty.Empty, error)
- type UnlockAccountRequest
- func (*UnlockAccountRequest) Descriptor() ([]byte, []int)
- func (m *UnlockAccountRequest) GetAccount() string
- func (m *UnlockAccountRequest) GetPassphrase() []byte
- func (*UnlockAccountRequest) ProtoMessage()
- func (m *UnlockAccountRequest) Reset()
- func (m *UnlockAccountRequest) String() string
- func (m *UnlockAccountRequest) XXX_DiscardUnknown()
- func (m *UnlockAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnlockAccountRequest) XXX_Merge(src proto.Message)
- func (m *UnlockAccountRequest) XXX_Size() int
- func (m *UnlockAccountRequest) XXX_Unmarshal(b []byte) error
- type UnlockWalletRequest
- func (*UnlockWalletRequest) Descriptor() ([]byte, []int)
- func (m *UnlockWalletRequest) GetPassphrase() []byte
- func (m *UnlockWalletRequest) GetWallet() string
- func (*UnlockWalletRequest) ProtoMessage()
- func (m *UnlockWalletRequest) Reset()
- func (m *UnlockWalletRequest) String() string
- func (m *UnlockWalletRequest) XXX_DiscardUnknown()
- func (m *UnlockWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnlockWalletRequest) XXX_Merge(src proto.Message)
- func (m *UnlockWalletRequest) XXX_Size() int
- func (m *UnlockWalletRequest) XXX_Unmarshal(b []byte) error
- type WalletManagerClient
- type WalletManagerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAccountManagerServer ¶
func RegisterAccountManagerServer(s *grpc.Server, srv AccountManagerServer)
func RegisterSignerServer ¶
func RegisterSignerServer(s *grpc.Server, srv SignerServer)
func RegisterWalletManagerServer ¶
func RegisterWalletManagerServer(s *grpc.Server, srv WalletManagerServer)
Types ¶
type Account ¶
type Account struct {
Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Account) Descriptor ¶
func (*Account) GetPublicKey ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type AccountManagerClient ¶
type AccountManagerClient interface {
Unlock(ctx context.Context, in *UnlockAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error)
Lock(ctx context.Context, in *LockAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
AccountManagerClient is the client API for AccountManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountManagerClient ¶
func NewAccountManagerClient(cc *grpc.ClientConn) AccountManagerClient
type AccountManagerServer ¶
type AccountManagerServer interface {
Unlock(context.Context, *UnlockAccountRequest) (*empty.Empty, error)
Lock(context.Context, *LockAccountRequest) (*empty.Empty, error)
}
AccountManagerServer is the server API for AccountManager service.
type ListAccountsRequest ¶
type ListAccountsRequest struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ListAccountsRequest) Descriptor ¶
func (*ListAccountsRequest) Descriptor() ([]byte, []int)
func (*ListAccountsRequest) GetPath ¶
func (m *ListAccountsRequest) GetPath() string
func (*ListAccountsRequest) ProtoMessage ¶
func (*ListAccountsRequest) ProtoMessage()
func (*ListAccountsRequest) Reset ¶
func (m *ListAccountsRequest) Reset()
func (*ListAccountsRequest) String ¶
func (m *ListAccountsRequest) String() string
func (*ListAccountsRequest) XXX_DiscardUnknown ¶
func (m *ListAccountsRequest) XXX_DiscardUnknown()
func (*ListAccountsRequest) XXX_Marshal ¶
func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAccountsRequest) XXX_Merge ¶
func (m *ListAccountsRequest) XXX_Merge(src proto.Message)
func (*ListAccountsRequest) XXX_Size ¶
func (m *ListAccountsRequest) XXX_Size() int
func (*ListAccountsRequest) XXX_Unmarshal ¶
func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error
type ListAccountsResponse ¶
type ListAccountsResponse struct {
Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ListAccountsResponse) Descriptor ¶
func (*ListAccountsResponse) Descriptor() ([]byte, []int)
func (*ListAccountsResponse) GetAccounts ¶
func (m *ListAccountsResponse) GetAccounts() []*Account
func (*ListAccountsResponse) ProtoMessage ¶
func (*ListAccountsResponse) ProtoMessage()
func (*ListAccountsResponse) Reset ¶
func (m *ListAccountsResponse) Reset()
func (*ListAccountsResponse) String ¶
func (m *ListAccountsResponse) String() string
func (*ListAccountsResponse) XXX_DiscardUnknown ¶
func (m *ListAccountsResponse) XXX_DiscardUnknown()
func (*ListAccountsResponse) XXX_Marshal ¶
func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAccountsResponse) XXX_Merge ¶
func (m *ListAccountsResponse) XXX_Merge(src proto.Message)
func (*ListAccountsResponse) XXX_Size ¶
func (m *ListAccountsResponse) XXX_Size() int
func (*ListAccountsResponse) XXX_Unmarshal ¶
func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error
type LockAccountRequest ¶
type LockAccountRequest struct {
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*LockAccountRequest) Descriptor ¶
func (*LockAccountRequest) Descriptor() ([]byte, []int)
func (*LockAccountRequest) GetAccount ¶
func (m *LockAccountRequest) GetAccount() string
func (*LockAccountRequest) ProtoMessage ¶
func (*LockAccountRequest) ProtoMessage()
func (*LockAccountRequest) Reset ¶
func (m *LockAccountRequest) Reset()
func (*LockAccountRequest) String ¶
func (m *LockAccountRequest) String() string
func (*LockAccountRequest) XXX_DiscardUnknown ¶
func (m *LockAccountRequest) XXX_DiscardUnknown()
func (*LockAccountRequest) XXX_Marshal ¶
func (m *LockAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LockAccountRequest) XXX_Merge ¶
func (m *LockAccountRequest) XXX_Merge(src proto.Message)
func (*LockAccountRequest) XXX_Size ¶
func (m *LockAccountRequest) XXX_Size() int
func (*LockAccountRequest) XXX_Unmarshal ¶
func (m *LockAccountRequest) XXX_Unmarshal(b []byte) error
type LockWalletRequest ¶
type LockWalletRequest struct {
Wallet string `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*LockWalletRequest) Descriptor ¶
func (*LockWalletRequest) Descriptor() ([]byte, []int)
func (*LockWalletRequest) GetWallet ¶
func (m *LockWalletRequest) GetWallet() string
func (*LockWalletRequest) ProtoMessage ¶
func (*LockWalletRequest) ProtoMessage()
func (*LockWalletRequest) Reset ¶
func (m *LockWalletRequest) Reset()
func (*LockWalletRequest) String ¶
func (m *LockWalletRequest) String() string
func (*LockWalletRequest) XXX_DiscardUnknown ¶
func (m *LockWalletRequest) XXX_DiscardUnknown()
func (*LockWalletRequest) XXX_Marshal ¶
func (m *LockWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LockWalletRequest) XXX_Merge ¶
func (m *LockWalletRequest) XXX_Merge(src proto.Message)
func (*LockWalletRequest) XXX_Size ¶
func (m *LockWalletRequest) XXX_Size() int
func (*LockWalletRequest) XXX_Unmarshal ¶
func (m *LockWalletRequest) XXX_Unmarshal(b []byte) error
type SignRequest ¶
type SignRequest struct {
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Domain uint64 `protobuf:"varint,3,opt,name=domain,proto3" json:"domain,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SignRequest) Descriptor ¶
func (*SignRequest) Descriptor() ([]byte, []int)
func (*SignRequest) GetAccount ¶
func (m *SignRequest) GetAccount() string
func (*SignRequest) GetData ¶
func (m *SignRequest) GetData() []byte
func (*SignRequest) GetDomain ¶
func (m *SignRequest) GetDomain() uint64
func (*SignRequest) ProtoMessage ¶
func (*SignRequest) ProtoMessage()
func (*SignRequest) Reset ¶
func (m *SignRequest) Reset()
func (*SignRequest) String ¶
func (m *SignRequest) String() string
func (*SignRequest) XXX_DiscardUnknown ¶
func (m *SignRequest) XXX_DiscardUnknown()
func (*SignRequest) XXX_Marshal ¶
func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignRequest) XXX_Merge ¶
func (m *SignRequest) XXX_Merge(src proto.Message)
func (*SignRequest) XXX_Size ¶
func (m *SignRequest) XXX_Size() int
func (*SignRequest) XXX_Unmarshal ¶
func (m *SignRequest) XXX_Unmarshal(b []byte) error
type SignResponse ¶
type SignResponse struct {
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SignResponse) Descriptor ¶
func (*SignResponse) Descriptor() ([]byte, []int)
func (*SignResponse) GetSignature ¶
func (m *SignResponse) GetSignature() []byte
func (*SignResponse) ProtoMessage ¶
func (*SignResponse) ProtoMessage()
func (*SignResponse) Reset ¶
func (m *SignResponse) Reset()
func (*SignResponse) String ¶
func (m *SignResponse) String() string
func (*SignResponse) XXX_DiscardUnknown ¶
func (m *SignResponse) XXX_DiscardUnknown()
func (*SignResponse) XXX_Marshal ¶
func (m *SignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignResponse) XXX_Merge ¶
func (m *SignResponse) XXX_Merge(src proto.Message)
func (*SignResponse) XXX_Size ¶
func (m *SignResponse) XXX_Size() int
func (*SignResponse) XXX_Unmarshal ¶
func (m *SignResponse) XXX_Unmarshal(b []byte) error
type SignerClient ¶
type SignerClient interface {
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
}
SignerClient is the client API for Signer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSignerClient ¶
func NewSignerClient(cc *grpc.ClientConn) SignerClient
type SignerServer ¶
type SignerServer interface {
Sign(context.Context, *SignRequest) (*SignResponse, error)
}
SignerServer is the server API for Signer service.
type UnimplementedAccountManagerServer ¶
type UnimplementedAccountManagerServer struct {
}
UnimplementedAccountManagerServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountManagerServer) Lock ¶
func (*UnimplementedAccountManagerServer) Lock(ctx context.Context, req *LockAccountRequest) (*empty.Empty, error)
func (*UnimplementedAccountManagerServer) Unlock ¶
func (*UnimplementedAccountManagerServer) Unlock(ctx context.Context, req *UnlockAccountRequest) (*empty.Empty, error)
type UnimplementedSignerServer ¶
type UnimplementedSignerServer struct {
}
UnimplementedSignerServer can be embedded to have forward compatible implementations.
func (*UnimplementedSignerServer) Sign ¶
func (*UnimplementedSignerServer) Sign(ctx context.Context, req *SignRequest) (*SignResponse, error)
type UnimplementedWalletManagerServer ¶
type UnimplementedWalletManagerServer struct {
}
UnimplementedWalletManagerServer can be embedded to have forward compatible implementations.
func (*UnimplementedWalletManagerServer) ListAccounts ¶
func (*UnimplementedWalletManagerServer) ListAccounts(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error)
func (*UnimplementedWalletManagerServer) Lock ¶
func (*UnimplementedWalletManagerServer) Lock(ctx context.Context, req *LockWalletRequest) (*empty.Empty, error)
func (*UnimplementedWalletManagerServer) Unlock ¶
func (*UnimplementedWalletManagerServer) Unlock(ctx context.Context, req *UnlockWalletRequest) (*empty.Empty, error)
type UnlockAccountRequest ¶
type UnlockAccountRequest struct {
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Passphrase []byte `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UnlockAccountRequest) Descriptor ¶
func (*UnlockAccountRequest) Descriptor() ([]byte, []int)
func (*UnlockAccountRequest) GetAccount ¶
func (m *UnlockAccountRequest) GetAccount() string
func (*UnlockAccountRequest) GetPassphrase ¶
func (m *UnlockAccountRequest) GetPassphrase() []byte
func (*UnlockAccountRequest) ProtoMessage ¶
func (*UnlockAccountRequest) ProtoMessage()
func (*UnlockAccountRequest) Reset ¶
func (m *UnlockAccountRequest) Reset()
func (*UnlockAccountRequest) String ¶
func (m *UnlockAccountRequest) String() string
func (*UnlockAccountRequest) XXX_DiscardUnknown ¶
func (m *UnlockAccountRequest) XXX_DiscardUnknown()
func (*UnlockAccountRequest) XXX_Marshal ¶
func (m *UnlockAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnlockAccountRequest) XXX_Merge ¶
func (m *UnlockAccountRequest) XXX_Merge(src proto.Message)
func (*UnlockAccountRequest) XXX_Size ¶
func (m *UnlockAccountRequest) XXX_Size() int
func (*UnlockAccountRequest) XXX_Unmarshal ¶
func (m *UnlockAccountRequest) XXX_Unmarshal(b []byte) error
type UnlockWalletRequest ¶
type UnlockWalletRequest struct {
Wallet string `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet,omitempty"`
Passphrase []byte `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UnlockWalletRequest) Descriptor ¶
func (*UnlockWalletRequest) Descriptor() ([]byte, []int)
func (*UnlockWalletRequest) GetPassphrase ¶
func (m *UnlockWalletRequest) GetPassphrase() []byte
func (*UnlockWalletRequest) GetWallet ¶
func (m *UnlockWalletRequest) GetWallet() string
func (*UnlockWalletRequest) ProtoMessage ¶
func (*UnlockWalletRequest) ProtoMessage()
func (*UnlockWalletRequest) Reset ¶
func (m *UnlockWalletRequest) Reset()
func (*UnlockWalletRequest) String ¶
func (m *UnlockWalletRequest) String() string
func (*UnlockWalletRequest) XXX_DiscardUnknown ¶
func (m *UnlockWalletRequest) XXX_DiscardUnknown()
func (*UnlockWalletRequest) XXX_Marshal ¶
func (m *UnlockWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnlockWalletRequest) XXX_Merge ¶
func (m *UnlockWalletRequest) XXX_Merge(src proto.Message)
func (*UnlockWalletRequest) XXX_Size ¶
func (m *UnlockWalletRequest) XXX_Size() int
func (*UnlockWalletRequest) XXX_Unmarshal ¶
func (m *UnlockWalletRequest) XXX_Unmarshal(b []byte) error
type WalletManagerClient ¶
type WalletManagerClient interface {
Unlock(ctx context.Context, in *UnlockWalletRequest, opts ...grpc.CallOption) (*empty.Empty, error)
Lock(ctx context.Context, in *LockWalletRequest, opts ...grpc.CallOption) (*empty.Empty, error)
ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
}
WalletManagerClient is the client API for WalletManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWalletManagerClient ¶
func NewWalletManagerClient(cc *grpc.ClientConn) WalletManagerClient
type WalletManagerServer ¶
type WalletManagerServer interface {
Unlock(context.Context, *UnlockWalletRequest) (*empty.Empty, error)
Lock(context.Context, *LockWalletRequest) (*empty.Empty, error)
ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
}
WalletManagerServer is the server API for WalletManager service.