walletv1connect

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WalletServiceGetOwnerHotWalletsProcedure is the fully-qualified name of the WalletService's
	// GetOwnerHotWallets RPC.
	WalletServiceGetOwnerHotWalletsProcedure = "/processing.wallet.v1.WalletService/GetOwnerHotWallets"
	// WalletServiceGetOwnerColdWalletsProcedure is the fully-qualified name of the WalletService's
	// GetOwnerColdWallets RPC.
	WalletServiceGetOwnerColdWalletsProcedure = "/processing.wallet.v1.WalletService/GetOwnerColdWallets"
	// WalletServiceGetOwnerProcessingWalletsProcedure is the fully-qualified name of the
	// WalletService's GetOwnerProcessingWallets RPC.
	WalletServiceGetOwnerProcessingWalletsProcedure = "/processing.wallet.v1.WalletService/GetOwnerProcessingWallets"
	// WalletServiceAttachOwnerColdWalletsProcedure is the fully-qualified name of the WalletService's
	// AttachOwnerColdWallets RPC.
	WalletServiceAttachOwnerColdWalletsProcedure = "/processing.wallet.v1.WalletService/AttachOwnerColdWallets"
	// WalletServiceMarkDirtyHotWalletProcedure is the fully-qualified name of the WalletService's
	// MarkDirtyHotWallet RPC.
	WalletServiceMarkDirtyHotWalletProcedure = "/processing.wallet.v1.WalletService/MarkDirtyHotWallet"
	// WalletServiceCreateOwnerHotWalletProcedure is the fully-qualified name of the WalletService's
	// CreateOwnerHotWallet RPC.
	WalletServiceCreateOwnerHotWalletProcedure = "/processing.wallet.v1.WalletService/CreateOwnerHotWallet"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// WalletServiceName is the fully-qualified name of the WalletService service.
	WalletServiceName = "processing.wallet.v1.WalletService"
)

Variables

This section is empty.

Functions

func NewWalletServiceHandler

func NewWalletServiceHandler(svc WalletServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewWalletServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type UnimplementedWalletServiceHandler

type UnimplementedWalletServiceHandler struct{}

UnimplementedWalletServiceHandler returns CodeUnimplemented from all methods.

type WalletServiceClient

type WalletServiceClient interface {
	// Get owner hot wallets
	GetOwnerHotWallets(context.Context, *connect.Request[v1.GetOwnerHotWalletsRequest]) (*connect.Response[v1.GetOwnerHotWalletsResponse], error)
	// Get owner cold active wallet list
	GetOwnerColdWallets(context.Context, *connect.Request[v1.GetOwnerColdWalletsRequest]) (*connect.Response[v1.GetOwnerColdWalletsResponse], error)
	// Get owner processing wallets
	GetOwnerProcessingWallets(context.Context, *connect.Request[v1.GetOwnerProcessingWalletsRequest]) (*connect.Response[v1.GetOwnerProcessingWalletsResponse], error)
	// Attach owner cold wallets
	AttachOwnerColdWallets(context.Context, *connect.Request[v1.AttachOwnerColdWalletsRequest]) (*connect.Response[v1.AttachOwnerColdWalletsResponse], error)
	// Mark a dirty hot wallet
	MarkDirtyHotWallet(context.Context, *connect.Request[v1.MarkDirtyHotWalletRequest]) (*connect.Response[v1.MarkDirtyHotWalletResponse], error)
	// Create owner hot wallet
	CreateOwnerHotWallet(context.Context, *connect.Request[v1.CreateOwnerHotWalletRequest]) (*connect.Response[v1.CreateOwnerHotWalletResponse], error)
}

WalletServiceClient is a client for the processing.wallet.v1.WalletService service.

func NewWalletServiceClient

func NewWalletServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WalletServiceClient

NewWalletServiceClient constructs a client for the processing.wallet.v1.WalletService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type WalletServiceHandler

type WalletServiceHandler interface {
	// Get owner hot wallets
	GetOwnerHotWallets(context.Context, *connect.Request[v1.GetOwnerHotWalletsRequest]) (*connect.Response[v1.GetOwnerHotWalletsResponse], error)
	// Get owner cold active wallet list
	GetOwnerColdWallets(context.Context, *connect.Request[v1.GetOwnerColdWalletsRequest]) (*connect.Response[v1.GetOwnerColdWalletsResponse], error)
	// Get owner processing wallets
	GetOwnerProcessingWallets(context.Context, *connect.Request[v1.GetOwnerProcessingWalletsRequest]) (*connect.Response[v1.GetOwnerProcessingWalletsResponse], error)
	// Attach owner cold wallets
	AttachOwnerColdWallets(context.Context, *connect.Request[v1.AttachOwnerColdWalletsRequest]) (*connect.Response[v1.AttachOwnerColdWalletsResponse], error)
	// Mark a dirty hot wallet
	MarkDirtyHotWallet(context.Context, *connect.Request[v1.MarkDirtyHotWalletRequest]) (*connect.Response[v1.MarkDirtyHotWalletResponse], error)
	// Create owner hot wallet
	CreateOwnerHotWallet(context.Context, *connect.Request[v1.CreateOwnerHotWalletRequest]) (*connect.Response[v1.CreateOwnerHotWalletResponse], error)
}

WalletServiceHandler is an implementation of the processing.wallet.v1.WalletService service.

Jump to

Keyboard shortcuts

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