integration_registryv1connect

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// IntegrationRegistryServiceCreateProcedure is the fully-qualified name of the
	// IntegrationRegistryService's Create RPC.
	IntegrationRegistryServiceCreateProcedure = "/autokitteh.integration_registry.v1.IntegrationRegistryService/Create"
	// IntegrationRegistryServiceUpdateProcedure is the fully-qualified name of the
	// IntegrationRegistryService's Update RPC.
	IntegrationRegistryServiceUpdateProcedure = "/autokitteh.integration_registry.v1.IntegrationRegistryService/Update"
	// IntegrationRegistryServiceDeleteProcedure is the fully-qualified name of the
	// IntegrationRegistryService's Delete RPC.
	IntegrationRegistryServiceDeleteProcedure = "/autokitteh.integration_registry.v1.IntegrationRegistryService/Delete"
	// IntegrationRegistryServiceGetProcedure is the fully-qualified name of the
	// IntegrationRegistryService's Get RPC.
	IntegrationRegistryServiceGetProcedure = "/autokitteh.integration_registry.v1.IntegrationRegistryService/Get"
	// IntegrationRegistryServiceListProcedure is the fully-qualified name of the
	// IntegrationRegistryService's List RPC.
	IntegrationRegistryServiceListProcedure = "/autokitteh.integration_registry.v1.IntegrationRegistryService/List"
)

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 (
	// IntegrationRegistryServiceName is the fully-qualified name of the IntegrationRegistryService
	// service.
	IntegrationRegistryServiceName = "autokitteh.integration_registry.v1.IntegrationRegistryService"
)

Variables

This section is empty.

Functions

func NewIntegrationRegistryServiceHandler

func NewIntegrationRegistryServiceHandler(svc IntegrationRegistryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewIntegrationRegistryServiceHandler 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 IntegrationRegistryServiceClient

type IntegrationRegistryServiceClient interface {
	// Register a new integration with the autokitteh server,
	// to enable that server to create connections using it.
	Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error)
	Update(context.Context, *connect.Request[v1.UpdateRequest]) (*connect.Response[v1.UpdateResponse], error)
	Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error)
	Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
	List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
}

IntegrationRegistryServiceClient is a client for the autokitteh.integration_registry.v1.IntegrationRegistryService service.

func NewIntegrationRegistryServiceClient

func NewIntegrationRegistryServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IntegrationRegistryServiceClient

NewIntegrationRegistryServiceClient constructs a client for the autokitteh.integration_registry.v1.IntegrationRegistryService 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 IntegrationRegistryServiceHandler

type IntegrationRegistryServiceHandler interface {
	// Register a new integration with the autokitteh server,
	// to enable that server to create connections using it.
	Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error)
	Update(context.Context, *connect.Request[v1.UpdateRequest]) (*connect.Response[v1.UpdateResponse], error)
	Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error)
	Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
	List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
}

IntegrationRegistryServiceHandler is an implementation of the autokitteh.integration_registry.v1.IntegrationRegistryService service.

type UnimplementedIntegrationRegistryServiceHandler

type UnimplementedIntegrationRegistryServiceHandler struct{}

UnimplementedIntegrationRegistryServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedIntegrationRegistryServiceHandler) Create

func (UnimplementedIntegrationRegistryServiceHandler) Delete

func (UnimplementedIntegrationRegistryServiceHandler) Get

func (UnimplementedIntegrationRegistryServiceHandler) List

func (UnimplementedIntegrationRegistryServiceHandler) Update

Jump to

Keyboard shortcuts

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