secretsv1connect

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kv2ServiceCreateSecretProcedure is the fully-qualified name of the Kv2Service's CreateSecret RPC.
	Kv2ServiceCreateSecretProcedure = "/secrets.v1.Kv2Service/CreateSecret"
	// Kv2ServiceGetSecretProcedure is the fully-qualified name of the Kv2Service's GetSecret RPC.
	Kv2ServiceGetSecretProcedure = "/secrets.v1.Kv2Service/GetSecret"
	// Kv2ServiceUpdateSecretProcedure is the fully-qualified name of the Kv2Service's UpdateSecret RPC.
	Kv2ServiceUpdateSecretProcedure = "/secrets.v1.Kv2Service/UpdateSecret"
	// Kv2ServiceDeleteSecretProcedure is the fully-qualified name of the Kv2Service's DeleteSecret RPC.
	Kv2ServiceDeleteSecretProcedure = "/secrets.v1.Kv2Service/DeleteSecret"
	// Kv2ServiceRevertSecretProcedure is the fully-qualified name of the Kv2Service's RevertSecret RPC.
	Kv2ServiceRevertSecretProcedure = "/secrets.v1.Kv2Service/RevertSecret"
	// Kv2ServiceListSecretsProcedure is the fully-qualified name of the Kv2Service's ListSecrets RPC.
	Kv2ServiceListSecretsProcedure = "/secrets.v1.Kv2Service/ListSecrets"
	// Kv2ServiceBackupProcedure is the fully-qualified name of the Kv2Service's Backup RPC.
	Kv2ServiceBackupProcedure = "/secrets.v1.Kv2Service/Backup"
	// Kv2ServiceApplicationVersionInfoProcedure is the fully-qualified name of the Kv2Service's
	// ApplicationVersionInfo RPC.
	Kv2ServiceApplicationVersionInfoProcedure = "/secrets.v1.Kv2Service/ApplicationVersionInfo"
)

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 (
	// Kv2ServiceName is the fully-qualified name of the Kv2Service service.
	Kv2ServiceName = "secrets.v1.Kv2Service"
)

Variables

This section is empty.

Functions

func NewKv2ServiceHandler

func NewKv2ServiceHandler(svc Kv2ServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewKv2ServiceHandler 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 Kv2ServiceClient

Kv2ServiceClient is a client for the secrets.v1.Kv2Service service.

func NewKv2ServiceClient

func NewKv2ServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) Kv2ServiceClient

NewKv2ServiceClient constructs a client for the secrets.v1.Kv2Service 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 UnimplementedKv2ServiceHandler

type UnimplementedKv2ServiceHandler struct{}

UnimplementedKv2ServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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