Documentation
¶
Index ¶
- Constants
- func NewWalletServiceHandler(svc WalletServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type UnimplementedWalletServiceHandler
- func (UnimplementedWalletServiceHandler) AttachOwnerColdWallets(context.Context, *connect.Request[v1.AttachOwnerColdWalletsRequest]) (*connect.Response[v1.AttachOwnerColdWalletsResponse], error)
- func (UnimplementedWalletServiceHandler) CreateOwnerHotWallet(context.Context, *connect.Request[v1.CreateOwnerHotWalletRequest]) (*connect.Response[v1.CreateOwnerHotWalletResponse], error)
- func (UnimplementedWalletServiceHandler) GetOwnerColdWallets(context.Context, *connect.Request[v1.GetOwnerColdWalletsRequest]) (*connect.Response[v1.GetOwnerColdWalletsResponse], error)
- func (UnimplementedWalletServiceHandler) GetOwnerHotWallets(context.Context, *connect.Request[v1.GetOwnerHotWalletsRequest]) (*connect.Response[v1.GetOwnerHotWalletsResponse], error)
- func (UnimplementedWalletServiceHandler) GetOwnerProcessingWallets(context.Context, *connect.Request[v1.GetOwnerProcessingWalletsRequest]) (*connect.Response[v1.GetOwnerProcessingWalletsResponse], error)
- func (UnimplementedWalletServiceHandler) MarkDirtyHotWallet(context.Context, *connect.Request[v1.MarkDirtyHotWalletRequest]) (*connect.Response[v1.MarkDirtyHotWalletResponse], error)
- type WalletServiceClient
- type WalletServiceHandler
Constants ¶
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.
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.
func (UnimplementedWalletServiceHandler) AttachOwnerColdWallets ¶
func (UnimplementedWalletServiceHandler) AttachOwnerColdWallets(context.Context, *connect.Request[v1.AttachOwnerColdWalletsRequest]) (*connect.Response[v1.AttachOwnerColdWalletsResponse], error)
func (UnimplementedWalletServiceHandler) CreateOwnerHotWallet ¶
func (UnimplementedWalletServiceHandler) CreateOwnerHotWallet(context.Context, *connect.Request[v1.CreateOwnerHotWalletRequest]) (*connect.Response[v1.CreateOwnerHotWalletResponse], error)
func (UnimplementedWalletServiceHandler) GetOwnerColdWallets ¶
func (UnimplementedWalletServiceHandler) GetOwnerColdWallets(context.Context, *connect.Request[v1.GetOwnerColdWalletsRequest]) (*connect.Response[v1.GetOwnerColdWalletsResponse], error)
func (UnimplementedWalletServiceHandler) GetOwnerHotWallets ¶
func (UnimplementedWalletServiceHandler) GetOwnerHotWallets(context.Context, *connect.Request[v1.GetOwnerHotWalletsRequest]) (*connect.Response[v1.GetOwnerHotWalletsResponse], error)
func (UnimplementedWalletServiceHandler) GetOwnerProcessingWallets ¶
func (UnimplementedWalletServiceHandler) GetOwnerProcessingWallets(context.Context, *connect.Request[v1.GetOwnerProcessingWalletsRequest]) (*connect.Response[v1.GetOwnerProcessingWalletsResponse], error)
func (UnimplementedWalletServiceHandler) MarkDirtyHotWallet ¶
func (UnimplementedWalletServiceHandler) MarkDirtyHotWallet(context.Context, *connect.Request[v1.MarkDirtyHotWalletRequest]) (*connect.Response[v1.MarkDirtyHotWalletResponse], error)
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.