ownerv1connect

package
v0.9.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// OwnerServiceCreateProcedure is the fully-qualified name of the OwnerService's Create RPC.
	OwnerServiceCreateProcedure = "/processing.owner.v1.OwnerService/Create"
	// OwnerServiceGetSeedsProcedure is the fully-qualified name of the OwnerService's GetSeeds RPC.
	OwnerServiceGetSeedsProcedure = "/processing.owner.v1.OwnerService/GetSeeds"
	// OwnerServiceGetPrivateKeysProcedure is the fully-qualified name of the OwnerService's
	// GetPrivateKeys RPC.
	OwnerServiceGetPrivateKeysProcedure = "/processing.owner.v1.OwnerService/GetPrivateKeys"
	// OwnerServiceGetHotWalletKeysProcedure is the fully-qualified name of the OwnerService's
	// GetHotWalletKeys RPC.
	OwnerServiceGetHotWalletKeysProcedure = "/processing.owner.v1.OwnerService/GetHotWalletKeys"
	// OwnerServiceConfirmTwoFactorAuthProcedure is the fully-qualified name of the OwnerService's
	// ConfirmTwoFactorAuth RPC.
	OwnerServiceConfirmTwoFactorAuthProcedure = "/processing.owner.v1.OwnerService/ConfirmTwoFactorAuth"
	// OwnerServiceDisableTwoFactorAuthProcedure is the fully-qualified name of the OwnerService's
	// DisableTwoFactorAuth RPC.
	OwnerServiceDisableTwoFactorAuthProcedure = "/processing.owner.v1.OwnerService/DisableTwoFactorAuth"
	// OwnerServiceGetTwoFactorAuthDataProcedure is the fully-qualified name of the OwnerService's
	// GetTwoFactorAuthData RPC.
	OwnerServiceGetTwoFactorAuthDataProcedure = "/processing.owner.v1.OwnerService/GetTwoFactorAuthData"
	// OwnerServiceValidateTwoFactorTokenProcedure is the fully-qualified name of the OwnerService's
	// ValidateTwoFactorToken RPC.
	OwnerServiceValidateTwoFactorTokenProcedure = "/processing.owner.v1.OwnerService/ValidateTwoFactorToken"
)

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 (
	// OwnerServiceName is the fully-qualified name of the OwnerService service.
	OwnerServiceName = "processing.owner.v1.OwnerService"
)

Variables

This section is empty.

Functions

func NewOwnerServiceHandler

func NewOwnerServiceHandler(svc OwnerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewOwnerServiceHandler 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 OwnerServiceClient

type OwnerServiceClient interface {
	// Create owner of client (creates processing wallet as side effect)
	Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error)
	// Get owner mnemonic phrases
	GetSeeds(context.Context, *connect.Request[v1.GetSeedsRequest]) (*connect.Response[v1.GetSeedsResponse], error)
	// Get owner private keys (only hot,processing)
	GetPrivateKeys(context.Context, *connect.Request[v1.GetPrivateKeysRequest]) (*connect.Response[v1.GetPrivateKeysResponse], error)
	// Get owner hot wallet keys
	GetHotWalletKeys(context.Context, *connect.Request[v1.GetHotWalletKeysRequest]) (*connect.Response[v1.GetHotWalletKeysResponse], error)
	// Confirm owner two auth
	ConfirmTwoFactorAuth(context.Context, *connect.Request[v1.ConfirmTwoFactorAuthRequest]) (*connect.Response[v1.ConfirmTwoFactorAuthResponse], error)
	// Enable or disable owners two auth
	DisableTwoFactorAuth(context.Context, *connect.Request[v1.DisableTwoFactorAuthRequest]) (*connect.Response[v1.DisableTwoFactorAuthResponse], error)
	// Get owner 2fa status data
	GetTwoFactorAuthData(context.Context, *connect.Request[v1.GetTwoFactorAuthDataRequest]) (*connect.Response[v1.GetTwoFactorAuthDataResponse], error)
	// Validate 2fa token
	ValidateTwoFactorToken(context.Context, *connect.Request[v1.ValidateTwoFactorTokenRequest]) (*connect.Response[v1.ValidateTwoFactorTokenResponse], error)
}

OwnerServiceClient is a client for the processing.owner.v1.OwnerService service.

func NewOwnerServiceClient

func NewOwnerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OwnerServiceClient

NewOwnerServiceClient constructs a client for the processing.owner.v1.OwnerService 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 OwnerServiceHandler

type OwnerServiceHandler interface {
	// Create owner of client (creates processing wallet as side effect)
	Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error)
	// Get owner mnemonic phrases
	GetSeeds(context.Context, *connect.Request[v1.GetSeedsRequest]) (*connect.Response[v1.GetSeedsResponse], error)
	// Get owner private keys (only hot,processing)
	GetPrivateKeys(context.Context, *connect.Request[v1.GetPrivateKeysRequest]) (*connect.Response[v1.GetPrivateKeysResponse], error)
	// Get owner hot wallet keys
	GetHotWalletKeys(context.Context, *connect.Request[v1.GetHotWalletKeysRequest]) (*connect.Response[v1.GetHotWalletKeysResponse], error)
	// Confirm owner two auth
	ConfirmTwoFactorAuth(context.Context, *connect.Request[v1.ConfirmTwoFactorAuthRequest]) (*connect.Response[v1.ConfirmTwoFactorAuthResponse], error)
	// Enable or disable owners two auth
	DisableTwoFactorAuth(context.Context, *connect.Request[v1.DisableTwoFactorAuthRequest]) (*connect.Response[v1.DisableTwoFactorAuthResponse], error)
	// Get owner 2fa status data
	GetTwoFactorAuthData(context.Context, *connect.Request[v1.GetTwoFactorAuthDataRequest]) (*connect.Response[v1.GetTwoFactorAuthDataResponse], error)
	// Validate 2fa token
	ValidateTwoFactorToken(context.Context, *connect.Request[v1.ValidateTwoFactorTokenRequest]) (*connect.Response[v1.ValidateTwoFactorTokenResponse], error)
}

OwnerServiceHandler is an implementation of the processing.owner.v1.OwnerService service.

type UnimplementedOwnerServiceHandler

type UnimplementedOwnerServiceHandler struct{}

UnimplementedOwnerServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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