rpcv1connect

package
v0.0.0-...-4b705a6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// WasiExecutorServiceName is the fully-qualified name of the WasiExecutorService service.
	WasiExecutorServiceName = "buildr.rpc.v1.WasiExecutorService"
	// ExecutorHostServiceName is the fully-qualified name of the ExecutorHostService service.
	ExecutorHostServiceName = "buildr.rpc.v1.ExecutorHostService"
)
View Source
const (
	// WasiExecutorServicePluginInventoryProcedure is the fully-qualified name of the
	// WasiExecutorService's PluginInventory RPC.
	WasiExecutorServicePluginInventoryProcedure = "/buildr.rpc.v1.WasiExecutorService/PluginInventory"
	// WasiExecutorServiceStartTaskProcedure is the fully-qualified name of the WasiExecutorService's
	// StartTask RPC.
	WasiExecutorServiceStartTaskProcedure = "/buildr.rpc.v1.WasiExecutorService/StartTask"
	// WasiExecutorServiceHelpProcedure is the fully-qualified name of the WasiExecutorService's Help
	// RPC.
	WasiExecutorServiceHelpProcedure = "/buildr.rpc.v1.WasiExecutorService/Help"
	// WasiExecutorServiceBinaryNameProcedure is the fully-qualified name of the WasiExecutorService's
	// BinaryName RPC.
	WasiExecutorServiceBinaryNameProcedure = "/buildr.rpc.v1.WasiExecutorService/BinaryName"
	// ExecutorHostServiceProcessStartProcedure is the fully-qualified name of the ExecutorHostService's
	// ProcessStart RPC.
	ExecutorHostServiceProcessStartProcedure = "/buildr.rpc.v1.ExecutorHostService/ProcessStart"
	// ExecutorHostServiceLookupPathProcedure is the fully-qualified name of the ExecutorHostService's
	// LookupPath RPC.
	ExecutorHostServiceLookupPathProcedure = "/buildr.rpc.v1.ExecutorHostService/LookupPath"
)

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 NewExecutorHostServiceHandler

func NewExecutorHostServiceHandler(svc ExecutorHostServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewExecutorHostServiceHandler 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 NewWasiExecutorServiceHandler

func NewWasiExecutorServiceHandler(svc WasiExecutorServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewWasiExecutorServiceHandler 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 ExecutorHostServiceClient

ExecutorHostServiceClient is a client for the buildr.rpc.v1.ExecutorHostService service.

func NewExecutorHostServiceClient

func NewExecutorHostServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ExecutorHostServiceClient

NewExecutorHostServiceClient constructs a client for the buildr.rpc.v1.ExecutorHostService 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 ExecutorHostServiceHandler

ExecutorHostServiceHandler is an implementation of the buildr.rpc.v1.ExecutorHostService service.

type UnimplementedExecutorHostServiceHandler

type UnimplementedExecutorHostServiceHandler struct{}

UnimplementedExecutorHostServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedWasiExecutorServiceHandler

type UnimplementedWasiExecutorServiceHandler struct{}

UnimplementedWasiExecutorServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedWasiExecutorServiceHandler) Help

type WasiExecutorServiceClient

WasiExecutorServiceClient is a client for the buildr.rpc.v1.WasiExecutorService service.

func NewWasiExecutorServiceClient

func NewWasiExecutorServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WasiExecutorServiceClient

NewWasiExecutorServiceClient constructs a client for the buildr.rpc.v1.WasiExecutorService 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 WasiExecutorServiceHandler

WasiExecutorServiceHandler is an implementation of the buildr.rpc.v1.WasiExecutorService service.

Jump to

Keyboard shortcuts

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