resolverv1connect

package
v0.6.0-do.not.use Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ResolverServiceName is the fully-qualified name of the ResolverService service.
	ResolverServiceName = "resolver.v1.ResolverService"
	// AuthorizerServiceName is the fully-qualified name of the AuthorizerService service.
	AuthorizerServiceName = "resolver.v1.AuthorizerService"
)
View Source
const (
	// ResolverServiceGetSecretsProcedure is the fully-qualified name of the ResolverService's
	// GetSecrets RPC.
	ResolverServiceGetSecretsProcedure = "/resolver.v1.ResolverService/GetSecrets"
	// AuthorizerServiceAuthorizeProcedure is the fully-qualified name of the AuthorizerService's
	// Authorize RPC.
	AuthorizerServiceAuthorizeProcedure = "/resolver.v1.AuthorizerService/Authorize"
)

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.

Variables

This section is empty.

Functions

func NewAuthorizerServiceHandler

func NewAuthorizerServiceHandler(svc AuthorizerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAuthorizerServiceHandler 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.

func NewResolverServiceHandler

func NewResolverServiceHandler(svc ResolverServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewResolverServiceHandler 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 AuthorizerServiceClient

type AuthorizerServiceClient interface {
	// Preflight: authorizes the caller for the patterns ahead of use, valid
	// until the returned expiry.
	Authorize(context.Context, *connect.Request[v1.AuthorizeRequest]) (*connect.Response[v1.AuthorizeResponse], error)
}

AuthorizerServiceClient is a client for the resolver.v1.AuthorizerService service.

func NewAuthorizerServiceClient

func NewAuthorizerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthorizerServiceClient

NewAuthorizerServiceClient constructs a client for the resolver.v1.AuthorizerService 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 AuthorizerServiceHandler

type AuthorizerServiceHandler interface {
	// Preflight: authorizes the caller for the patterns ahead of use, valid
	// until the returned expiry.
	Authorize(context.Context, *connect.Request[v1.AuthorizeRequest]) (*connect.Response[v1.AuthorizeResponse], error)
}

AuthorizerServiceHandler is an implementation of the resolver.v1.AuthorizerService service.

type ResolverServiceClient

type ResolverServiceClient interface {
	// Resolve a secret by its ID.
	GetSecrets(context.Context, *connect.Request[v1.GetSecretsRequest]) (*connect.Response[v1.GetSecretsResponse], error)
}

ResolverServiceClient is a client for the resolver.v1.ResolverService service.

func NewResolverServiceClient

func NewResolverServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ResolverServiceClient

NewResolverServiceClient constructs a client for the resolver.v1.ResolverService 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 ResolverServiceHandler

type ResolverServiceHandler interface {
	// Resolve a secret by its ID.
	GetSecrets(context.Context, *connect.Request[v1.GetSecretsRequest]) (*connect.Response[v1.GetSecretsResponse], error)
}

ResolverServiceHandler is an implementation of the resolver.v1.ResolverService service.

type UnimplementedAuthorizerServiceHandler

type UnimplementedAuthorizerServiceHandler struct{}

UnimplementedAuthorizerServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedResolverServiceHandler

type UnimplementedResolverServiceHandler struct{}

UnimplementedResolverServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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