pluginconnect

package
v0.0.0-...-af36fda Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginServiceName is the fully-qualified name of the PluginService service.
	PluginServiceName = "api.v1.plugin.PluginService"
	// RequestServiceName is the fully-qualified name of the RequestService service.
	RequestServiceName = "api.v1.plugin.RequestService"
)
View Source
const (
	// PluginServiceInitializeProcedure is the fully-qualified name of the PluginService's Initialize
	// RPC.
	PluginServiceInitializeProcedure = "/api.v1.plugin.PluginService/Initialize"
	// PluginServiceRunCapsuleProcedure is the fully-qualified name of the PluginService's RunCapsule
	// RPC.
	PluginServiceRunCapsuleProcedure = "/api.v1.plugin.PluginService/RunCapsule"
	// PluginServiceWatchObjectStatusProcedure is the fully-qualified name of the PluginService's
	// WatchObjectStatus RPC.
	PluginServiceWatchObjectStatusProcedure = "/api.v1.plugin.PluginService/WatchObjectStatus"
	// PluginServiceComputeConfigProcedure is the fully-qualified name of the PluginService's
	// ComputeConfig RPC.
	PluginServiceComputeConfigProcedure = "/api.v1.plugin.PluginService/ComputeConfig"
	// RequestServiceGetObjectProcedure is the fully-qualified name of the RequestService's GetObject
	// RPC.
	RequestServiceGetObjectProcedure = "/api.v1.plugin.RequestService/GetObject"
	// RequestServiceSetObjectProcedure is the fully-qualified name of the RequestService's SetObject
	// RPC.
	RequestServiceSetObjectProcedure = "/api.v1.plugin.RequestService/SetObject"
	// RequestServiceDeleteObjectProcedure is the fully-qualified name of the RequestService's
	// DeleteObject RPC.
	RequestServiceDeleteObjectProcedure = "/api.v1.plugin.RequestService/DeleteObject"
	// RequestServiceMarkUsedObjectProcedure is the fully-qualified name of the RequestService's
	// MarkUsedObject RPC.
	RequestServiceMarkUsedObjectProcedure = "/api.v1.plugin.RequestService/MarkUsedObject"
	// RequestServiceListObjectsProcedure is the fully-qualified name of the RequestService's
	// ListObjects RPC.
	RequestServiceListObjectsProcedure = "/api.v1.plugin.RequestService/ListObjects"
)

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 NewPluginServiceHandler

func NewPluginServiceHandler(svc PluginServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewPluginServiceHandler 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 NewRequestServiceHandler

func NewRequestServiceHandler(svc RequestServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewRequestServiceHandler 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 PluginServiceClient

PluginServiceClient is a client for the api.v1.plugin.PluginService service.

func NewPluginServiceClient

func NewPluginServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PluginServiceClient

NewPluginServiceClient constructs a client for the api.v1.plugin.PluginService 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 RequestServiceClient

RequestServiceClient is a client for the api.v1.plugin.RequestService service.

func NewRequestServiceClient

func NewRequestServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RequestServiceClient

NewRequestServiceClient constructs a client for the api.v1.plugin.RequestService 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 UnimplementedPluginServiceHandler

type UnimplementedPluginServiceHandler struct{}

UnimplementedPluginServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedRequestServiceHandler

type UnimplementedRequestServiceHandler struct{}

UnimplementedRequestServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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