proxyserver

package
v0.0.0-...-fc42b29 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
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

ProxyServer is a server that proxies requests to Coinbase WaaS servers.

func NewProxyServer

func NewProxyServer(ctx context.Context, log *zap.Logger) (*ProxyServer, error)

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

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

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

EstimateFee calls EstimateFee on the protocols proxy.

func (*ProxyServer) GenerateAddress

GenerateAddress calls GenerateAddress on the mpc wallets proxy.

func (*ProxyServer) GetAddress

GetAddress calls GetAddress on the mpc wallets proxy.

func (*ProxyServer) GetAsset

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

GetMPCWallet calls GetMPCWallet on the mpc wallets proxy.

func (*ProxyServer) GetNetwork

GetNetwork calls GetNetwork on the blockchain proxy.

func (*ProxyServer) GetOperation

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

ListAddresses calls ListAddresses on the mpc wallets proxy.

func (*ProxyServer) ListAssets

ListAssets calls ListAssets on the blockchain proxy.

func (*ProxyServer) ListBalanceDetails

ListBalanceDetails calls ListBalanceDetails on the mpc wallets proxy.

func (*ProxyServer) ListBalances

ListBalances calls ListBalances on the mpc wallets proxy.

func (*ProxyServer) ListMPCOperations

ListMPCOperations calls ListMPCOperations on the mpc keys proxy.

func (*ProxyServer) ListMPCTransactions

ListMPCTransactions calls ListMPCTransactions on the mpc transactions proxy.

func (*ProxyServer) ListMPCWallets

ListMPCWallets calls ListMPCWallets on the mpc wallets proxy.

func (*ProxyServer) ListNetworks

ListNetworks calls ListNetworks on the blockchain proxy.

func (*ProxyServer) ListOperations

ListOperations calls ListOperations on the operations proxy.

func (*ProxyServer) ListPools

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

WaitOperation calls WaitOperation on the operations proxy.

Jump to

Keyboard shortcuts

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