Documentation
¶
Index ¶
- Constants
- type ProxyServer
- func (p *ProxyServer) AddDevice(ctx context.Context, req *v1.AddDeviceRequest) (*longrunningpb.Operation, error)
- func (p *ProxyServer) BatchGetAssets(ctx context.Context, req *blockchainpb.BatchGetAssetsRequest) (*blockchainpb.BatchGetAssetsResponse, error)
- func (p *ProxyServer) BroadcastTransaction(ctx context.Context, req *protocolspb.BroadcastTransactionRequest) (*typespb.Transaction, error)
- func (p *ProxyServer) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest) (*emptypb.Empty, error)
- func (p *ProxyServer) ConstructTransaction(ctx context.Context, req *protocolspb.ConstructTransactionRequest) (*typespb.Transaction, error)
- func (p *ProxyServer) ConstructTransferTransaction(ctx context.Context, req *protocolspb.ConstructTransferTransactionRequest) (*typespb.Transaction, error)
- func (p *ProxyServer) CreateDeviceGroup(ctx context.Context, req *v1.CreateDeviceGroupRequest) (*longrunningpb.Operation, error)
- func (p *ProxyServer) CreateMPCKey(ctx context.Context, req *v1.CreateMPCKeyRequest) (*v1.MPCKey, error)
- func (p *ProxyServer) CreateMPCTransaction(ctx context.Context, req *v1.CreateMPCTransactionRequest) (*longrunningpb.Operation, error)
- func (p *ProxyServer) CreateMPCWallet(ctx context.Context, req *mpcwalletspb.CreateMPCWalletRequest) (*longrunningpb.Operation, error)
- func (p *ProxyServer) CreatePool(ctx context.Context, req *poolspb.CreatePoolRequest) (*poolspb.Pool, error)
- func (p *ProxyServer) CreateSignature(ctx context.Context, req *v1.CreateSignatureRequest) (*longrunningpb.Operation, error)
- func (p *ProxyServer) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest) (*emptypb.Empty, error)
- func (p *ProxyServer) EstimateFee(ctx context.Context, req *protocolspb.EstimateFeeRequest) (*protocolspb.EstimateFeeResponse, error)
- func (p *ProxyServer) GenerateAddress(ctx context.Context, req *mpcwalletspb.GenerateAddressRequest) (*mpcwalletspb.Address, error)
- func (p *ProxyServer) GetAddress(ctx context.Context, req *mpcwalletspb.GetAddressRequest) (*mpcwalletspb.Address, error)
- func (p *ProxyServer) GetAsset(ctx context.Context, req *blockchainpb.GetAssetRequest) (*blockchainpb.Asset, error)
- func (p *ProxyServer) GetDevice(ctx context.Context, req *v1.GetDeviceRequest) (*v1.Device, error)
- func (p *ProxyServer) GetDeviceGroup(ctx context.Context, req *v1.GetDeviceGroupRequest) (*v1.DeviceGroup, error)
- func (p *ProxyServer) GetMPCKey(ctx context.Context, req *v1.GetMPCKeyRequest) (*v1.MPCKey, error)
- func (p *ProxyServer) GetMPCTransaction(ctx context.Context, req *v1.GetMPCTransactionRequest) (*v1.MPCTransaction, error)
- func (p *ProxyServer) GetMPCWallet(ctx context.Context, req *mpcwalletspb.GetMPCWalletRequest) (*mpcwalletspb.MPCWallet, error)
- func (p *ProxyServer) GetNetwork(ctx context.Context, req *blockchainpb.GetNetworkRequest) (*blockchainpb.Network, error)
- func (p *ProxyServer) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest) (*longrunningpb.Operation, error)
- func (p *ProxyServer) GetPool(ctx context.Context, req *poolspb.GetPoolRequest) (*poolspb.Pool, error)
- func (p *ProxyServer) ListAddresses(ctx context.Context, req *mpcwalletspb.ListAddressesRequest) (*mpcwalletspb.ListAddressesResponse, error)
- func (p *ProxyServer) ListAssets(ctx context.Context, req *blockchainpb.ListAssetsRequest) (*blockchainpb.ListAssetsResponse, error)
- func (p *ProxyServer) ListBalanceDetails(ctx context.Context, req *mpcwalletspb.ListBalanceDetailsRequest) (*mpcwalletspb.ListBalanceDetailsResponse, error)
- func (p *ProxyServer) ListBalances(ctx context.Context, req *mpcwalletspb.ListBalancesRequest) (*mpcwalletspb.ListBalancesResponse, error)
- func (p *ProxyServer) ListMPCOperations(ctx context.Context, req *v1.ListMPCOperationsRequest) (*v1.ListMPCOperationsResponse, error)
- func (p *ProxyServer) ListMPCTransactions(ctx context.Context, req *v1.ListMPCTransactionsRequest) (*v1.ListMPCTransactionsResponse, error)
- func (p *ProxyServer) ListMPCWallets(ctx context.Context, req *mpcwalletspb.ListMPCWalletsRequest) (*mpcwalletspb.ListMPCWalletsResponse, error)
- func (p *ProxyServer) ListNetworks(ctx context.Context, req *blockchainpb.ListNetworksRequest) (*blockchainpb.ListNetworksResponse, error)
- func (p *ProxyServer) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest) (*longrunningpb.ListOperationsResponse, error)
- func (p *ProxyServer) ListPools(ctx context.Context, req *poolspb.ListPoolsRequest) (*poolspb.ListPoolsResponse, error)
- func (p *ProxyServer) PrepareDeviceArchive(ctx context.Context, req *v1.PrepareDeviceArchiveRequest) (*longrunningpb.Operation, error)
- func (p *ProxyServer) PrepareDeviceBackup(ctx context.Context, req *v1.PrepareDeviceBackupRequest) (*longrunningpb.Operation, error)
- func (p *ProxyServer) RegisterDevice(ctx context.Context, req *v1.RegisterDeviceRequest) (*v1.Device, error)
- func (p *ProxyServer) RevokeDevice(ctx context.Context, req *v1.RevokeDeviceRequest) (*emptypb.Empty, error)
- func (p *ProxyServer) Serve(ctx context.Context) error
- func (p *ProxyServer) WaitOperation(ctx context.Context, req *longrunningpb.WaitOperationRequest) (*longrunningpb.Operation, error)
Constants ¶
const ( // ReadHeaderTimeout is a timeout set to ensure that the HTTP server // is not vulnerable to Slowloris attacks that exhaust open connections // by holding them indefinitely and periodically sending partial HTTP headers. ReadHeaderTimeout = time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyServer ¶
type ProxyServer struct {
blockchainpb.UnimplementedBlockchainServiceServer
protocolspb.UnimplementedProtocolServiceServer
poolspb.UnimplementedPoolServiceServer
mpckeyspb.UnimplementedMPCKeyServiceServer
mpcwalletspb.UnimplementedMPCWalletServiceServer
mpctransactionspb.UnimplementedMPCTransactionServiceServer
longrunningpb.UnimplementedOperationsServer
// contains filtered or unexported fields
}
ProxyServer is a server that proxies requests to Coinbase WaaS servers.
func NewProxyServer ¶
NewProxyServer creates a new ProxyServer.
func (*ProxyServer) AddDevice ¶
func (p *ProxyServer) AddDevice( ctx context.Context, req *v1.AddDeviceRequest, ) (*longrunningpb.Operation, error)
AddDevice calls AddDevice on the mpc keys proxy.
func (*ProxyServer) BatchGetAssets ¶
func (p *ProxyServer) BatchGetAssets( ctx context.Context, req *blockchainpb.BatchGetAssetsRequest, ) (*blockchainpb.BatchGetAssetsResponse, error)
BatchGetAssets calls BatchGetAssets on the blockchain proxy.
func (*ProxyServer) BroadcastTransaction ¶
func (p *ProxyServer) BroadcastTransaction( ctx context.Context, req *protocolspb.BroadcastTransactionRequest, ) (*typespb.Transaction, error)
BraodcastTransaction calls BroadcastTransaction on the protocols proxy.
func (*ProxyServer) CancelOperation ¶
func (p *ProxyServer) CancelOperation( ctx context.Context, req *longrunningpb.CancelOperationRequest, ) (*emptypb.Empty, error)
CancelOperation calls CancelOperation on the operations proxy.
func (*ProxyServer) ConstructTransaction ¶
func (p *ProxyServer) ConstructTransaction( ctx context.Context, req *protocolspb.ConstructTransactionRequest, ) (*typespb.Transaction, error)
ConstructTransaction calls ConstructTransaction on the protocols proxy.
func (*ProxyServer) ConstructTransferTransaction ¶
func (p *ProxyServer) ConstructTransferTransaction( ctx context.Context, req *protocolspb.ConstructTransferTransactionRequest, ) (*typespb.Transaction, error)
ConstructTransferTransaction calls ConstructTransferTransaction on the protocols proxy.
func (*ProxyServer) CreateDeviceGroup ¶
func (p *ProxyServer) CreateDeviceGroup( ctx context.Context, req *v1.CreateDeviceGroupRequest, ) (*longrunningpb.Operation, error)
CreateDeviceGroup calls CreateDeviceGroup on the mpc keys proxy.
func (*ProxyServer) CreateMPCKey ¶
func (p *ProxyServer) CreateMPCKey( ctx context.Context, req *v1.CreateMPCKeyRequest, ) (*v1.MPCKey, error)
CreateMPCKey calls CreateMPCKey on the mpc keys proxy.
func (*ProxyServer) CreateMPCTransaction ¶
func (p *ProxyServer) CreateMPCTransaction( ctx context.Context, req *v1.CreateMPCTransactionRequest, ) (*longrunningpb.Operation, error)
CreateMPCTransaction calls CreateMPCTransaction on the mpc transactions proxy.
func (*ProxyServer) CreateMPCWallet ¶
func (p *ProxyServer) CreateMPCWallet( ctx context.Context, req *mpcwalletspb.CreateMPCWalletRequest, ) (*longrunningpb.Operation, error)
CreateMPCWallet calls CreateMPCWallet on the mpc wallets proxy.
func (*ProxyServer) CreatePool ¶
func (p *ProxyServer) CreatePool( ctx context.Context, req *poolspb.CreatePoolRequest, ) (*poolspb.Pool, error)
CreatePool calls CreatePool on the pools proxy.
func (*ProxyServer) CreateSignature ¶
func (p *ProxyServer) CreateSignature( ctx context.Context, req *v1.CreateSignatureRequest, ) (*longrunningpb.Operation, error)
CreateSignature calls CreateSignature on the mpc keys proxy.
func (*ProxyServer) DeleteOperation ¶
func (p *ProxyServer) DeleteOperation( ctx context.Context, req *longrunningpb.DeleteOperationRequest, ) (*emptypb.Empty, error)
DeleteOperation calls DeleteOperation on the operations proxy.
func (*ProxyServer) EstimateFee ¶
func (p *ProxyServer) EstimateFee( ctx context.Context, req *protocolspb.EstimateFeeRequest, ) (*protocolspb.EstimateFeeResponse, error)
EstimateFee calls EstimateFee on the protocols proxy.
func (*ProxyServer) GenerateAddress ¶
func (p *ProxyServer) GenerateAddress( ctx context.Context, req *mpcwalletspb.GenerateAddressRequest, ) (*mpcwalletspb.Address, error)
GenerateAddress calls GenerateAddress on the mpc wallets proxy.
func (*ProxyServer) GetAddress ¶
func (p *ProxyServer) GetAddress( ctx context.Context, req *mpcwalletspb.GetAddressRequest, ) (*mpcwalletspb.Address, error)
GetAddress calls GetAddress on the mpc wallets proxy.
func (*ProxyServer) GetAsset ¶
func (p *ProxyServer) GetAsset( ctx context.Context, req *blockchainpb.GetAssetRequest, ) (*blockchainpb.Asset, error)
GetAsset calls GetAsset on the blockchain proxy.
func (*ProxyServer) GetDevice ¶
func (p *ProxyServer) GetDevice( ctx context.Context, req *v1.GetDeviceRequest, ) (*v1.Device, error)
GetDevice calls GetDevice on the mpc keys proxy.
func (*ProxyServer) GetDeviceGroup ¶
func (p *ProxyServer) GetDeviceGroup( ctx context.Context, req *v1.GetDeviceGroupRequest, ) (*v1.DeviceGroup, error)
GetDeviceGroup calls GetDeviceGroup on the mpc keys proxy.
func (*ProxyServer) GetMPCKey ¶
func (p *ProxyServer) GetMPCKey( ctx context.Context, req *v1.GetMPCKeyRequest, ) (*v1.MPCKey, error)
GetMPCKey calls GetMPCKey on the mpc keys proxy.
func (*ProxyServer) GetMPCTransaction ¶
func (p *ProxyServer) GetMPCTransaction( ctx context.Context, req *v1.GetMPCTransactionRequest, ) (*v1.MPCTransaction, error)
GetMPCTransaction calls GetMPCTransaction on the mpc transactions proxy.
func (*ProxyServer) GetMPCWallet ¶
func (p *ProxyServer) GetMPCWallet( ctx context.Context, req *mpcwalletspb.GetMPCWalletRequest, ) (*mpcwalletspb.MPCWallet, error)
GetMPCWallet calls GetMPCWallet on the mpc wallets proxy.
func (*ProxyServer) GetNetwork ¶
func (p *ProxyServer) GetNetwork( ctx context.Context, req *blockchainpb.GetNetworkRequest, ) (*blockchainpb.Network, error)
GetNetwork calls GetNetwork on the blockchain proxy.
func (*ProxyServer) GetOperation ¶
func (p *ProxyServer) GetOperation( ctx context.Context, req *longrunningpb.GetOperationRequest, ) (*longrunningpb.Operation, error)
GetOperation calls GetOperation on the operations proxy.
func (*ProxyServer) GetPool ¶
func (p *ProxyServer) GetPool( ctx context.Context, req *poolspb.GetPoolRequest, ) (*poolspb.Pool, error)
GetPool calls GetPool on the pools proxy.
func (*ProxyServer) ListAddresses ¶
func (p *ProxyServer) ListAddresses( ctx context.Context, req *mpcwalletspb.ListAddressesRequest, ) (*mpcwalletspb.ListAddressesResponse, error)
ListAddresses calls ListAddresses on the mpc wallets proxy.
func (*ProxyServer) ListAssets ¶
func (p *ProxyServer) ListAssets( ctx context.Context, req *blockchainpb.ListAssetsRequest, ) (*blockchainpb.ListAssetsResponse, error)
ListAssets calls ListAssets on the blockchain proxy.
func (*ProxyServer) ListBalanceDetails ¶
func (p *ProxyServer) ListBalanceDetails( ctx context.Context, req *mpcwalletspb.ListBalanceDetailsRequest, ) (*mpcwalletspb.ListBalanceDetailsResponse, error)
ListBalanceDetails calls ListBalanceDetails on the mpc wallets proxy.
func (*ProxyServer) ListBalances ¶
func (p *ProxyServer) ListBalances( ctx context.Context, req *mpcwalletspb.ListBalancesRequest, ) (*mpcwalletspb.ListBalancesResponse, error)
ListBalances calls ListBalances on the mpc wallets proxy.
func (*ProxyServer) ListMPCOperations ¶
func (p *ProxyServer) ListMPCOperations( ctx context.Context, req *v1.ListMPCOperationsRequest, ) (*v1.ListMPCOperationsResponse, error)
ListMPCOperations calls ListMPCOperations on the mpc keys proxy.
func (*ProxyServer) ListMPCTransactions ¶
func (p *ProxyServer) ListMPCTransactions( ctx context.Context, req *v1.ListMPCTransactionsRequest, ) (*v1.ListMPCTransactionsResponse, error)
ListMPCTransactions calls ListMPCTransactions on the mpc transactions proxy.
func (*ProxyServer) ListMPCWallets ¶
func (p *ProxyServer) ListMPCWallets( ctx context.Context, req *mpcwalletspb.ListMPCWalletsRequest, ) (*mpcwalletspb.ListMPCWalletsResponse, error)
ListMPCWallets calls ListMPCWallets on the mpc wallets proxy.
func (*ProxyServer) ListNetworks ¶
func (p *ProxyServer) ListNetworks( ctx context.Context, req *blockchainpb.ListNetworksRequest, ) (*blockchainpb.ListNetworksResponse, error)
ListNetworks calls ListNetworks on the blockchain proxy.
func (*ProxyServer) ListOperations ¶
func (p *ProxyServer) ListOperations( ctx context.Context, req *longrunningpb.ListOperationsRequest, ) (*longrunningpb.ListOperationsResponse, error)
ListOperations calls ListOperations on the operations proxy.
func (*ProxyServer) ListPools ¶
func (p *ProxyServer) ListPools( ctx context.Context, req *poolspb.ListPoolsRequest, ) (*poolspb.ListPoolsResponse, error)
ListPools calls ListPools on the pools proxy.
func (*ProxyServer) PrepareDeviceArchive ¶
func (p *ProxyServer) PrepareDeviceArchive( ctx context.Context, req *v1.PrepareDeviceArchiveRequest, ) (*longrunningpb.Operation, error)
PrepareDeviceArchive calls PrepareDeviceArchive on the mpc keys proxy.
func (*ProxyServer) PrepareDeviceBackup ¶
func (p *ProxyServer) PrepareDeviceBackup( ctx context.Context, req *v1.PrepareDeviceBackupRequest, ) (*longrunningpb.Operation, error)
PrepareDeviceBackup calls PrepareDeviceBackup on the mpc keys proxy.
func (*ProxyServer) RegisterDevice ¶
func (p *ProxyServer) RegisterDevice( ctx context.Context, req *v1.RegisterDeviceRequest, ) (*v1.Device, error)
RegisterDevice calls RegisterDevice on the mpc keys proxy.
func (*ProxyServer) RevokeDevice ¶
func (p *ProxyServer) RevokeDevice( ctx context.Context, req *v1.RevokeDeviceRequest, ) (*emptypb.Empty, error)
RevokeDevice calls RevokeDevice on the mpc keys proxy.
func (*ProxyServer) Serve ¶
func (p *ProxyServer) Serve(ctx context.Context) error
Serve starts the proxy server.
func (*ProxyServer) WaitOperation ¶
func (p *ProxyServer) WaitOperation( ctx context.Context, req *longrunningpb.WaitOperationRequest, ) (*longrunningpb.Operation, error)
WaitOperation calls WaitOperation on the operations proxy.