Documentation ¶
Index ¶
- Constants
- func NewIntegrationsServiceHandler(svc IntegrationsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type IntegrationsServiceClient
- type IntegrationsServiceHandler
- type UnimplementedIntegrationsServiceHandler
- func (UnimplementedIntegrationsServiceHandler) Call(context.Context, *connect.Request[v1.CallRequest]) (*connect.Response[v1.CallResponse], error)
- func (UnimplementedIntegrationsServiceHandler) Configure(context.Context, *connect.Request[v1.ConfigureRequest]) (*connect.Response[v1.ConfigureResponse], error)
- func (UnimplementedIntegrationsServiceHandler) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
- func (UnimplementedIntegrationsServiceHandler) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
Constants ¶
const ( // IntegrationsServiceGetProcedure is the fully-qualified name of the IntegrationsService's Get RPC. IntegrationsServiceGetProcedure = "/autokitteh.integrations.v1.IntegrationsService/Get" // IntegrationsServiceListProcedure is the fully-qualified name of the IntegrationsService's List // RPC. IntegrationsServiceListProcedure = "/autokitteh.integrations.v1.IntegrationsService/List" // IntegrationsServiceConfigureProcedure is the fully-qualified name of the IntegrationsService's // Configure RPC. IntegrationsServiceConfigureProcedure = "/autokitteh.integrations.v1.IntegrationsService/Configure" // IntegrationsServiceCallProcedure is the fully-qualified name of the IntegrationsService's Call // RPC. IntegrationsServiceCallProcedure = "/autokitteh.integrations.v1.IntegrationsService/Call" )
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.
const (
// IntegrationsServiceName is the fully-qualified name of the IntegrationsService service.
IntegrationsServiceName = "autokitteh.integrations.v1.IntegrationsService"
)
Variables ¶
This section is empty.
Functions ¶
func NewIntegrationsServiceHandler ¶
func NewIntegrationsServiceHandler(svc IntegrationsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewIntegrationsServiceHandler 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 IntegrationsServiceClient ¶
type IntegrationsServiceClient interface { Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error) // Get all values for a specific configuration of the integration. // The returned values ExecutorIDs will be the integration id. Configure(context.Context, *connect.Request[v1.ConfigureRequest]) (*connect.Response[v1.ConfigureResponse], error) Call(context.Context, *connect.Request[v1.CallRequest]) (*connect.Response[v1.CallResponse], error) }
IntegrationsServiceClient is a client for the autokitteh.integrations.v1.IntegrationsService service.
func NewIntegrationsServiceClient ¶
func NewIntegrationsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IntegrationsServiceClient
NewIntegrationsServiceClient constructs a client for the autokitteh.integrations.v1.IntegrationsService 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 IntegrationsServiceHandler ¶
type IntegrationsServiceHandler interface { Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error) // Get all values for a specific configuration of the integration. // The returned values ExecutorIDs will be the integration id. Configure(context.Context, *connect.Request[v1.ConfigureRequest]) (*connect.Response[v1.ConfigureResponse], error) Call(context.Context, *connect.Request[v1.CallRequest]) (*connect.Response[v1.CallResponse], error) }
IntegrationsServiceHandler is an implementation of the autokitteh.integrations.v1.IntegrationsService service.
type UnimplementedIntegrationsServiceHandler ¶
type UnimplementedIntegrationsServiceHandler struct{}
UnimplementedIntegrationsServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedIntegrationsServiceHandler) Call ¶
func (UnimplementedIntegrationsServiceHandler) Call(context.Context, *connect.Request[v1.CallRequest]) (*connect.Response[v1.CallResponse], error)
func (UnimplementedIntegrationsServiceHandler) Configure ¶
func (UnimplementedIntegrationsServiceHandler) Configure(context.Context, *connect.Request[v1.ConfigureRequest]) (*connect.Response[v1.ConfigureResponse], error)
func (UnimplementedIntegrationsServiceHandler) Get ¶
func (UnimplementedIntegrationsServiceHandler) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
func (UnimplementedIntegrationsServiceHandler) List ¶
func (UnimplementedIntegrationsServiceHandler) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)