Documentation ¶
Index ¶
- Constants
- func NewWorkflowsDefinitionServiceHandler(svc WorkflowsDefinitionServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type UnimplementedWorkflowsDefinitionServiceHandler
- func (UnimplementedWorkflowsDefinitionServiceHandler) DeleteFlowDefinition(context.Context, *connect_go.Request[workflows.DeleteFlowDefinitionRequest]) (*connect_go.Response[workflows.DeleteFlowDefinitionResponse], error)
- func (UnimplementedWorkflowsDefinitionServiceHandler) GetFlowDefinition(context.Context, *connect_go.Request[workflows.GetFlowDefinitionRequest]) (*connect_go.Response[workflows.GetFlowDefinitionResponse], error)
- func (UnimplementedWorkflowsDefinitionServiceHandler) ListFlowDefinitions(context.Context, *connect_go.Request[workflows.ListFlowDefinitionsRequest]) (*connect_go.Response[workflows.ListFlowDefinitionsResponse], error)
- func (UnimplementedWorkflowsDefinitionServiceHandler) SaveFlowDefinition(context.Context, *connect_go.Request[workflows.SaveFlowDefinitionRequest]) (*connect_go.Response[workflows.SaveFlowDefinitionResponse], error)
- type WorkflowsDefinitionServiceClient
- type WorkflowsDefinitionServiceHandler
Constants ¶
const ( // WorkflowsDefinitionServiceListFlowDefinitionsProcedure is the fully-qualified name of the // WorkflowsDefinitionService's ListFlowDefinitions RPC. WorkflowsDefinitionServiceListFlowDefinitionsProcedure = "/api.v1alpha1.workflows.WorkflowsDefinitionService/ListFlowDefinitions" // WorkflowsDefinitionServiceSaveFlowDefinitionProcedure is the fully-qualified name of the // WorkflowsDefinitionService's SaveFlowDefinition RPC. WorkflowsDefinitionServiceSaveFlowDefinitionProcedure = "/api.v1alpha1.workflows.WorkflowsDefinitionService/SaveFlowDefinition" // WorkflowsDefinitionServiceGetFlowDefinitionProcedure is the fully-qualified name of the // WorkflowsDefinitionService's GetFlowDefinition RPC. WorkflowsDefinitionServiceGetFlowDefinitionProcedure = "/api.v1alpha1.workflows.WorkflowsDefinitionService/GetFlowDefinition" // WorkflowsDefinitionServiceDeleteFlowDefinitionProcedure is the fully-qualified name of the // WorkflowsDefinitionService's DeleteFlowDefinition RPC. WorkflowsDefinitionServiceDeleteFlowDefinitionProcedure = "/api.v1alpha1.workflows.WorkflowsDefinitionService/DeleteFlowDefinition" )
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 ( // WorkflowsDefinitionServiceName is the fully-qualified name of the WorkflowsDefinitionService // service. WorkflowsDefinitionServiceName = "api.v1alpha1.workflows.WorkflowsDefinitionService" )
Variables ¶
This section is empty.
Functions ¶
func NewWorkflowsDefinitionServiceHandler ¶
func NewWorkflowsDefinitionServiceHandler(svc WorkflowsDefinitionServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewWorkflowsDefinitionServiceHandler 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 UnimplementedWorkflowsDefinitionServiceHandler ¶
type UnimplementedWorkflowsDefinitionServiceHandler struct{}
UnimplementedWorkflowsDefinitionServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedWorkflowsDefinitionServiceHandler) DeleteFlowDefinition ¶
func (UnimplementedWorkflowsDefinitionServiceHandler) DeleteFlowDefinition(context.Context, *connect_go.Request[workflows.DeleteFlowDefinitionRequest]) (*connect_go.Response[workflows.DeleteFlowDefinitionResponse], error)
func (UnimplementedWorkflowsDefinitionServiceHandler) GetFlowDefinition ¶
func (UnimplementedWorkflowsDefinitionServiceHandler) GetFlowDefinition(context.Context, *connect_go.Request[workflows.GetFlowDefinitionRequest]) (*connect_go.Response[workflows.GetFlowDefinitionResponse], error)
func (UnimplementedWorkflowsDefinitionServiceHandler) ListFlowDefinitions ¶
func (UnimplementedWorkflowsDefinitionServiceHandler) ListFlowDefinitions(context.Context, *connect_go.Request[workflows.ListFlowDefinitionsRequest]) (*connect_go.Response[workflows.ListFlowDefinitionsResponse], error)
func (UnimplementedWorkflowsDefinitionServiceHandler) SaveFlowDefinition ¶
func (UnimplementedWorkflowsDefinitionServiceHandler) SaveFlowDefinition(context.Context, *connect_go.Request[workflows.SaveFlowDefinitionRequest]) (*connect_go.Response[workflows.SaveFlowDefinitionResponse], error)
type WorkflowsDefinitionServiceClient ¶
type WorkflowsDefinitionServiceClient interface { // ListFlowDefinitions lists flow definitions ListFlowDefinitions(context.Context, *connect_go.Request[workflows.ListFlowDefinitionsRequest]) (*connect_go.Response[workflows.ListFlowDefinitionsResponse], error) // SaveFlowDefinition creates or updates a flow definition SaveFlowDefinition(context.Context, *connect_go.Request[workflows.SaveFlowDefinitionRequest]) (*connect_go.Response[workflows.SaveFlowDefinitionResponse], error) // GetFlowDefinition gets a flow definition GetFlowDefinition(context.Context, *connect_go.Request[workflows.GetFlowDefinitionRequest]) (*connect_go.Response[workflows.GetFlowDefinitionResponse], error) // DeleteFlowDefinition deletes a flow definition DeleteFlowDefinition(context.Context, *connect_go.Request[workflows.DeleteFlowDefinitionRequest]) (*connect_go.Response[workflows.DeleteFlowDefinitionResponse], error) }
WorkflowsDefinitionServiceClient is a client for the api.v1alpha1.workflows.WorkflowsDefinitionService service.
func NewWorkflowsDefinitionServiceClient ¶
func NewWorkflowsDefinitionServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) WorkflowsDefinitionServiceClient
NewWorkflowsDefinitionServiceClient constructs a client for the api.v1alpha1.workflows.WorkflowsDefinitionService 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 WorkflowsDefinitionServiceHandler ¶
type WorkflowsDefinitionServiceHandler interface { // ListFlowDefinitions lists flow definitions ListFlowDefinitions(context.Context, *connect_go.Request[workflows.ListFlowDefinitionsRequest]) (*connect_go.Response[workflows.ListFlowDefinitionsResponse], error) // SaveFlowDefinition creates or updates a flow definition SaveFlowDefinition(context.Context, *connect_go.Request[workflows.SaveFlowDefinitionRequest]) (*connect_go.Response[workflows.SaveFlowDefinitionResponse], error) // GetFlowDefinition gets a flow definition GetFlowDefinition(context.Context, *connect_go.Request[workflows.GetFlowDefinitionRequest]) (*connect_go.Response[workflows.GetFlowDefinitionResponse], error) // DeleteFlowDefinition deletes a flow definition DeleteFlowDefinition(context.Context, *connect_go.Request[workflows.DeleteFlowDefinitionRequest]) (*connect_go.Response[workflows.DeleteFlowDefinitionResponse], error) }
WorkflowsDefinitionServiceHandler is an implementation of the api.v1alpha1.workflows.WorkflowsDefinitionService service.