Documentation ¶
Index ¶
- Variables
- func RegisterDispatcherServer(s grpc.ServiceRegistrar, srv DispatcherServer)
- type ActionEventResponse
- func (*ActionEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ActionEventResponse) GetTenantId() string
- func (x *ActionEventResponse) GetWorkerId() string
- func (*ActionEventResponse) ProtoMessage()
- func (x *ActionEventResponse) ProtoReflect() protoreflect.Message
- func (x *ActionEventResponse) Reset()
- func (x *ActionEventResponse) String() string
- type ActionType
- type AssignedAction
- func (*AssignedAction) Descriptor() ([]byte, []int)deprecated
- func (x *AssignedAction) GetActionId() string
- func (x *AssignedAction) GetActionPayload() string
- func (x *AssignedAction) GetActionType() ActionType
- func (x *AssignedAction) GetGetGroupKeyRunId() string
- func (x *AssignedAction) GetJobId() string
- func (x *AssignedAction) GetJobName() string
- func (x *AssignedAction) GetJobRunId() string
- func (x *AssignedAction) GetStepId() string
- func (x *AssignedAction) GetStepRunId() string
- func (x *AssignedAction) GetTenantId() string
- func (x *AssignedAction) GetWorkflowRunId() string
- func (*AssignedAction) ProtoMessage()
- func (x *AssignedAction) ProtoReflect() protoreflect.Message
- func (x *AssignedAction) Reset()
- func (x *AssignedAction) String() string
- type DispatcherClient
- type DispatcherServer
- type Dispatcher_ListenClient
- type Dispatcher_ListenServer
- type Dispatcher_SubscribeToWorkflowEventsClient
- type Dispatcher_SubscribeToWorkflowEventsServer
- type GroupKeyActionEvent
- func (*GroupKeyActionEvent) Descriptor() ([]byte, []int)deprecated
- func (x *GroupKeyActionEvent) GetActionId() string
- func (x *GroupKeyActionEvent) GetEventPayload() string
- func (x *GroupKeyActionEvent) GetEventTimestamp() *timestamppb.Timestamp
- func (x *GroupKeyActionEvent) GetEventType() GroupKeyActionEventType
- func (x *GroupKeyActionEvent) GetGetGroupKeyRunId() string
- func (x *GroupKeyActionEvent) GetWorkerId() string
- func (x *GroupKeyActionEvent) GetWorkflowRunId() string
- func (*GroupKeyActionEvent) ProtoMessage()
- func (x *GroupKeyActionEvent) ProtoReflect() protoreflect.Message
- func (x *GroupKeyActionEvent) Reset()
- func (x *GroupKeyActionEvent) String() string
- type GroupKeyActionEventType
- func (GroupKeyActionEventType) Descriptor() protoreflect.EnumDescriptor
- func (x GroupKeyActionEventType) Enum() *GroupKeyActionEventType
- func (GroupKeyActionEventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupKeyActionEventType) Number() protoreflect.EnumNumber
- func (x GroupKeyActionEventType) String() string
- func (GroupKeyActionEventType) Type() protoreflect.EnumType
- type ResourceEventType
- func (ResourceEventType) Descriptor() protoreflect.EnumDescriptor
- func (x ResourceEventType) Enum() *ResourceEventType
- func (ResourceEventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResourceEventType) Number() protoreflect.EnumNumber
- func (x ResourceEventType) String() string
- func (ResourceEventType) Type() protoreflect.EnumType
- type ResourceType
- func (ResourceType) Descriptor() protoreflect.EnumDescriptor
- func (x ResourceType) Enum() *ResourceType
- func (ResourceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResourceType) Number() protoreflect.EnumNumber
- func (x ResourceType) String() string
- func (ResourceType) Type() protoreflect.EnumType
- type StepActionEvent
- func (*StepActionEvent) Descriptor() ([]byte, []int)deprecated
- func (x *StepActionEvent) GetActionId() string
- func (x *StepActionEvent) GetEventPayload() string
- func (x *StepActionEvent) GetEventTimestamp() *timestamppb.Timestamp
- func (x *StepActionEvent) GetEventType() StepActionEventType
- func (x *StepActionEvent) GetJobId() string
- func (x *StepActionEvent) GetJobRunId() string
- func (x *StepActionEvent) GetStepId() string
- func (x *StepActionEvent) GetStepRunId() string
- func (x *StepActionEvent) GetWorkerId() string
- func (*StepActionEvent) ProtoMessage()
- func (x *StepActionEvent) ProtoReflect() protoreflect.Message
- func (x *StepActionEvent) Reset()
- func (x *StepActionEvent) String() string
- type StepActionEventType
- func (StepActionEventType) Descriptor() protoreflect.EnumDescriptor
- func (x StepActionEventType) Enum() *StepActionEventType
- func (StepActionEventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x StepActionEventType) Number() protoreflect.EnumNumber
- func (x StepActionEventType) String() string
- func (StepActionEventType) Type() protoreflect.EnumType
- type SubscribeToWorkflowEventsRequest
- func (*SubscribeToWorkflowEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeToWorkflowEventsRequest) GetWorkflowRunId() string
- func (*SubscribeToWorkflowEventsRequest) ProtoMessage()
- func (x *SubscribeToWorkflowEventsRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeToWorkflowEventsRequest) Reset()
- func (x *SubscribeToWorkflowEventsRequest) String() string
- type UnimplementedDispatcherServer
- func (UnimplementedDispatcherServer) Listen(*WorkerListenRequest, Dispatcher_ListenServer) error
- func (UnimplementedDispatcherServer) Register(context.Context, *WorkerRegisterRequest) (*WorkerRegisterResponse, error)
- func (UnimplementedDispatcherServer) SendGroupKeyActionEvent(context.Context, *GroupKeyActionEvent) (*ActionEventResponse, error)
- func (UnimplementedDispatcherServer) SendStepActionEvent(context.Context, *StepActionEvent) (*ActionEventResponse, error)
- func (UnimplementedDispatcherServer) SubscribeToWorkflowEvents(*SubscribeToWorkflowEventsRequest, Dispatcher_SubscribeToWorkflowEventsServer) error
- func (UnimplementedDispatcherServer) Unsubscribe(context.Context, *WorkerUnsubscribeRequest) (*WorkerUnsubscribeResponse, error)
- type UnsafeDispatcherServer
- type WorkerListenRequest
- func (*WorkerListenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WorkerListenRequest) GetWorkerId() string
- func (*WorkerListenRequest) ProtoMessage()
- func (x *WorkerListenRequest) ProtoReflect() protoreflect.Message
- func (x *WorkerListenRequest) Reset()
- func (x *WorkerListenRequest) String() string
- type WorkerRegisterRequest
- func (*WorkerRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WorkerRegisterRequest) GetActions() []string
- func (x *WorkerRegisterRequest) GetServices() []string
- func (x *WorkerRegisterRequest) GetWorkerName() string
- func (*WorkerRegisterRequest) ProtoMessage()
- func (x *WorkerRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *WorkerRegisterRequest) Reset()
- func (x *WorkerRegisterRequest) String() string
- type WorkerRegisterResponse
- func (*WorkerRegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WorkerRegisterResponse) GetTenantId() string
- func (x *WorkerRegisterResponse) GetWorkerId() string
- func (x *WorkerRegisterResponse) GetWorkerName() string
- func (*WorkerRegisterResponse) ProtoMessage()
- func (x *WorkerRegisterResponse) ProtoReflect() protoreflect.Message
- func (x *WorkerRegisterResponse) Reset()
- func (x *WorkerRegisterResponse) String() string
- type WorkerUnsubscribeRequest
- func (*WorkerUnsubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WorkerUnsubscribeRequest) GetWorkerId() string
- func (*WorkerUnsubscribeRequest) ProtoMessage()
- func (x *WorkerUnsubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *WorkerUnsubscribeRequest) Reset()
- func (x *WorkerUnsubscribeRequest) String() string
- type WorkerUnsubscribeResponse
- func (*WorkerUnsubscribeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WorkerUnsubscribeResponse) GetTenantId() string
- func (x *WorkerUnsubscribeResponse) GetWorkerId() string
- func (*WorkerUnsubscribeResponse) ProtoMessage()
- func (x *WorkerUnsubscribeResponse) ProtoReflect() protoreflect.Message
- func (x *WorkerUnsubscribeResponse) Reset()
- func (x *WorkerUnsubscribeResponse) String() string
- type WorkflowEvent
- func (*WorkflowEvent) Descriptor() ([]byte, []int)deprecated
- func (x *WorkflowEvent) GetEventPayload() string
- func (x *WorkflowEvent) GetEventTimestamp() *timestamppb.Timestamp
- func (x *WorkflowEvent) GetEventType() ResourceEventType
- func (x *WorkflowEvent) GetResourceId() string
- func (x *WorkflowEvent) GetResourceType() ResourceType
- func (x *WorkflowEvent) GetWorkflowRunId() string
- func (*WorkflowEvent) ProtoMessage()
- func (x *WorkflowEvent) ProtoReflect() protoreflect.Message
- func (x *WorkflowEvent) Reset()
- func (x *WorkflowEvent) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ActionType_name = map[int32]string{ 0: "START_STEP_RUN", 1: "CANCEL_STEP_RUN", 2: "START_GET_GROUP_KEY", } ActionType_value = map[string]int32{ "START_STEP_RUN": 0, "CANCEL_STEP_RUN": 1, "START_GET_GROUP_KEY": 2, } )
Enum value maps for ActionType.
var ( GroupKeyActionEventType_name = map[int32]string{ 0: "GROUP_KEY_EVENT_TYPE_UNKNOWN", 1: "GROUP_KEY_EVENT_TYPE_STARTED", 2: "GROUP_KEY_EVENT_TYPE_COMPLETED", 3: "GROUP_KEY_EVENT_TYPE_FAILED", } GroupKeyActionEventType_value = map[string]int32{ "GROUP_KEY_EVENT_TYPE_UNKNOWN": 0, "GROUP_KEY_EVENT_TYPE_STARTED": 1, "GROUP_KEY_EVENT_TYPE_COMPLETED": 2, "GROUP_KEY_EVENT_TYPE_FAILED": 3, } )
Enum value maps for GroupKeyActionEventType.
var ( StepActionEventType_name = map[int32]string{ 0: "STEP_EVENT_TYPE_UNKNOWN", 1: "STEP_EVENT_TYPE_STARTED", 2: "STEP_EVENT_TYPE_COMPLETED", 3: "STEP_EVENT_TYPE_FAILED", } StepActionEventType_value = map[string]int32{ "STEP_EVENT_TYPE_UNKNOWN": 0, "STEP_EVENT_TYPE_STARTED": 1, "STEP_EVENT_TYPE_COMPLETED": 2, "STEP_EVENT_TYPE_FAILED": 3, } )
Enum value maps for StepActionEventType.
var ( ResourceType_name = map[int32]string{ 0: "RESOURCE_TYPE_UNKNOWN", 1: "RESOURCE_TYPE_STEP_RUN", 2: "RESOURCE_TYPE_WORKFLOW_RUN", } ResourceType_value = map[string]int32{ "RESOURCE_TYPE_UNKNOWN": 0, "RESOURCE_TYPE_STEP_RUN": 1, "RESOURCE_TYPE_WORKFLOW_RUN": 2, } )
Enum value maps for ResourceType.
var ( ResourceEventType_name = map[int32]string{ 0: "RESOURCE_EVENT_TYPE_UNKNOWN", 1: "RESOURCE_EVENT_TYPE_STARTED", 2: "RESOURCE_EVENT_TYPE_COMPLETED", 3: "RESOURCE_EVENT_TYPE_FAILED", 4: "RESOURCE_EVENT_TYPE_CANCELLED", 5: "RESOURCE_EVENT_TYPE_TIMED_OUT", } ResourceEventType_value = map[string]int32{ "RESOURCE_EVENT_TYPE_UNKNOWN": 0, "RESOURCE_EVENT_TYPE_STARTED": 1, "RESOURCE_EVENT_TYPE_COMPLETED": 2, "RESOURCE_EVENT_TYPE_FAILED": 3, "RESOURCE_EVENT_TYPE_CANCELLED": 4, "RESOURCE_EVENT_TYPE_TIMED_OUT": 5, } )
Enum value maps for ResourceEventType.
var Dispatcher_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Dispatcher", HandlerType: (*DispatcherServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _Dispatcher_Register_Handler, }, { MethodName: "SendStepActionEvent", Handler: _Dispatcher_SendStepActionEvent_Handler, }, { MethodName: "SendGroupKeyActionEvent", Handler: _Dispatcher_SendGroupKeyActionEvent_Handler, }, { MethodName: "Unsubscribe", Handler: _Dispatcher_Unsubscribe_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Listen", Handler: _Dispatcher_Listen_Handler, ServerStreams: true, }, { StreamName: "SubscribeToWorkflowEvents", Handler: _Dispatcher_SubscribeToWorkflowEvents_Handler, ServerStreams: true, }, }, Metadata: "dispatcher.proto", }
Dispatcher_ServiceDesc is the grpc.ServiceDesc for Dispatcher service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dispatcher_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDispatcherServer ¶
func RegisterDispatcherServer(s grpc.ServiceRegistrar, srv DispatcherServer)
Types ¶
type ActionEventResponse ¶
type ActionEventResponse struct { // the tenant id TenantId string `protobuf:"bytes,1,opt,name=tenantId,proto3" json:"tenantId,omitempty"` // the id of the worker WorkerId string `protobuf:"bytes,2,opt,name=workerId,proto3" json:"workerId,omitempty"` // contains filtered or unexported fields }
func (*ActionEventResponse) Descriptor
deprecated
func (*ActionEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use ActionEventResponse.ProtoReflect.Descriptor instead.
func (*ActionEventResponse) GetTenantId ¶
func (x *ActionEventResponse) GetTenantId() string
func (*ActionEventResponse) GetWorkerId ¶
func (x *ActionEventResponse) GetWorkerId() string
func (*ActionEventResponse) ProtoMessage ¶
func (*ActionEventResponse) ProtoMessage()
func (*ActionEventResponse) ProtoReflect ¶
func (x *ActionEventResponse) ProtoReflect() protoreflect.Message
func (*ActionEventResponse) Reset ¶
func (x *ActionEventResponse) Reset()
func (*ActionEventResponse) String ¶
func (x *ActionEventResponse) String() string
type ActionType ¶
type ActionType int32
const ( ActionType_START_STEP_RUN ActionType = 0 ActionType_CANCEL_STEP_RUN ActionType = 1 ActionType_START_GET_GROUP_KEY ActionType = 2 )
func (ActionType) Descriptor ¶
func (ActionType) Descriptor() protoreflect.EnumDescriptor
func (ActionType) Enum ¶
func (x ActionType) Enum() *ActionType
func (ActionType) EnumDescriptor
deprecated
func (ActionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActionType.Descriptor instead.
func (ActionType) Number ¶
func (x ActionType) Number() protoreflect.EnumNumber
func (ActionType) String ¶
func (x ActionType) String() string
func (ActionType) Type ¶
func (ActionType) Type() protoreflect.EnumType
type AssignedAction ¶
type AssignedAction struct { // the tenant id TenantId string `protobuf:"bytes,1,opt,name=tenantId,proto3" json:"tenantId,omitempty"` // the workflow run id (optional) WorkflowRunId string `protobuf:"bytes,2,opt,name=workflowRunId,proto3" json:"workflowRunId,omitempty"` // the get group key run id (optional) GetGroupKeyRunId string `protobuf:"bytes,3,opt,name=getGroupKeyRunId,proto3" json:"getGroupKeyRunId,omitempty"` // the job id JobId string `protobuf:"bytes,4,opt,name=jobId,proto3" json:"jobId,omitempty"` // the job name JobName string `protobuf:"bytes,5,opt,name=jobName,proto3" json:"jobName,omitempty"` // the job run id JobRunId string `protobuf:"bytes,6,opt,name=jobRunId,proto3" json:"jobRunId,omitempty"` // the step id StepId string `protobuf:"bytes,7,opt,name=stepId,proto3" json:"stepId,omitempty"` // the step run id StepRunId string `protobuf:"bytes,8,opt,name=stepRunId,proto3" json:"stepRunId,omitempty"` // the action id ActionId string `protobuf:"bytes,9,opt,name=actionId,proto3" json:"actionId,omitempty"` // the action type ActionType ActionType `protobuf:"varint,10,opt,name=actionType,proto3,enum=ActionType" json:"actionType,omitempty"` // the action payload ActionPayload string `protobuf:"bytes,11,opt,name=actionPayload,proto3" json:"actionPayload,omitempty"` // contains filtered or unexported fields }
func (*AssignedAction) Descriptor
deprecated
func (*AssignedAction) Descriptor() ([]byte, []int)
Deprecated: Use AssignedAction.ProtoReflect.Descriptor instead.
func (*AssignedAction) GetActionId ¶
func (x *AssignedAction) GetActionId() string
func (*AssignedAction) GetActionPayload ¶
func (x *AssignedAction) GetActionPayload() string
func (*AssignedAction) GetActionType ¶
func (x *AssignedAction) GetActionType() ActionType
func (*AssignedAction) GetGetGroupKeyRunId ¶ added in v0.8.0
func (x *AssignedAction) GetGetGroupKeyRunId() string
func (*AssignedAction) GetJobId ¶
func (x *AssignedAction) GetJobId() string
func (*AssignedAction) GetJobName ¶
func (x *AssignedAction) GetJobName() string
func (*AssignedAction) GetJobRunId ¶
func (x *AssignedAction) GetJobRunId() string
func (*AssignedAction) GetStepId ¶
func (x *AssignedAction) GetStepId() string
func (*AssignedAction) GetStepRunId ¶
func (x *AssignedAction) GetStepRunId() string
func (*AssignedAction) GetTenantId ¶
func (x *AssignedAction) GetTenantId() string
func (*AssignedAction) GetWorkflowRunId ¶ added in v0.8.0
func (x *AssignedAction) GetWorkflowRunId() string
func (*AssignedAction) ProtoMessage ¶
func (*AssignedAction) ProtoMessage()
func (*AssignedAction) ProtoReflect ¶
func (x *AssignedAction) ProtoReflect() protoreflect.Message
func (*AssignedAction) Reset ¶
func (x *AssignedAction) Reset()
func (*AssignedAction) String ¶
func (x *AssignedAction) String() string
type DispatcherClient ¶
type DispatcherClient interface { Register(ctx context.Context, in *WorkerRegisterRequest, opts ...grpc.CallOption) (*WorkerRegisterResponse, error) Listen(ctx context.Context, in *WorkerListenRequest, opts ...grpc.CallOption) (Dispatcher_ListenClient, error) SubscribeToWorkflowEvents(ctx context.Context, in *SubscribeToWorkflowEventsRequest, opts ...grpc.CallOption) (Dispatcher_SubscribeToWorkflowEventsClient, error) SendStepActionEvent(ctx context.Context, in *StepActionEvent, opts ...grpc.CallOption) (*ActionEventResponse, error) SendGroupKeyActionEvent(ctx context.Context, in *GroupKeyActionEvent, opts ...grpc.CallOption) (*ActionEventResponse, error) Unsubscribe(ctx context.Context, in *WorkerUnsubscribeRequest, opts ...grpc.CallOption) (*WorkerUnsubscribeResponse, error) }
DispatcherClient is the client API for Dispatcher service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDispatcherClient ¶
func NewDispatcherClient(cc grpc.ClientConnInterface) DispatcherClient
type DispatcherServer ¶
type DispatcherServer interface { Register(context.Context, *WorkerRegisterRequest) (*WorkerRegisterResponse, error) Listen(*WorkerListenRequest, Dispatcher_ListenServer) error SubscribeToWorkflowEvents(*SubscribeToWorkflowEventsRequest, Dispatcher_SubscribeToWorkflowEventsServer) error SendStepActionEvent(context.Context, *StepActionEvent) (*ActionEventResponse, error) SendGroupKeyActionEvent(context.Context, *GroupKeyActionEvent) (*ActionEventResponse, error) Unsubscribe(context.Context, *WorkerUnsubscribeRequest) (*WorkerUnsubscribeResponse, error) // contains filtered or unexported methods }
DispatcherServer is the server API for Dispatcher service. All implementations must embed UnimplementedDispatcherServer for forward compatibility
type Dispatcher_ListenClient ¶
type Dispatcher_ListenClient interface { Recv() (*AssignedAction, error) grpc.ClientStream }
type Dispatcher_ListenServer ¶
type Dispatcher_ListenServer interface { Send(*AssignedAction) error grpc.ServerStream }
type Dispatcher_SubscribeToWorkflowEventsClient ¶ added in v0.9.0
type Dispatcher_SubscribeToWorkflowEventsClient interface { Recv() (*WorkflowEvent, error) grpc.ClientStream }
type Dispatcher_SubscribeToWorkflowEventsServer ¶ added in v0.9.0
type Dispatcher_SubscribeToWorkflowEventsServer interface { Send(*WorkflowEvent) error grpc.ServerStream }
type GroupKeyActionEvent ¶ added in v0.8.0
type GroupKeyActionEvent struct { // the id of the worker WorkerId string `protobuf:"bytes,1,opt,name=workerId,proto3" json:"workerId,omitempty"` // the id of the job WorkflowRunId string `protobuf:"bytes,2,opt,name=workflowRunId,proto3" json:"workflowRunId,omitempty"` GetGroupKeyRunId string `protobuf:"bytes,3,opt,name=getGroupKeyRunId,proto3" json:"getGroupKeyRunId,omitempty"` // the action id ActionId string `protobuf:"bytes,4,opt,name=actionId,proto3" json:"actionId,omitempty"` EventTimestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=eventTimestamp,proto3" json:"eventTimestamp,omitempty"` // the step event type EventType GroupKeyActionEventType `protobuf:"varint,6,opt,name=eventType,proto3,enum=GroupKeyActionEventType" json:"eventType,omitempty"` // the event payload EventPayload string `protobuf:"bytes,7,opt,name=eventPayload,proto3" json:"eventPayload,omitempty"` // contains filtered or unexported fields }
func (*GroupKeyActionEvent) Descriptor
deprecated
added in
v0.8.0
func (*GroupKeyActionEvent) Descriptor() ([]byte, []int)
Deprecated: Use GroupKeyActionEvent.ProtoReflect.Descriptor instead.
func (*GroupKeyActionEvent) GetActionId ¶ added in v0.8.0
func (x *GroupKeyActionEvent) GetActionId() string
func (*GroupKeyActionEvent) GetEventPayload ¶ added in v0.8.0
func (x *GroupKeyActionEvent) GetEventPayload() string
func (*GroupKeyActionEvent) GetEventTimestamp ¶ added in v0.8.0
func (x *GroupKeyActionEvent) GetEventTimestamp() *timestamppb.Timestamp
func (*GroupKeyActionEvent) GetEventType ¶ added in v0.8.0
func (x *GroupKeyActionEvent) GetEventType() GroupKeyActionEventType
func (*GroupKeyActionEvent) GetGetGroupKeyRunId ¶ added in v0.8.0
func (x *GroupKeyActionEvent) GetGetGroupKeyRunId() string
func (*GroupKeyActionEvent) GetWorkerId ¶ added in v0.8.0
func (x *GroupKeyActionEvent) GetWorkerId() string
func (*GroupKeyActionEvent) GetWorkflowRunId ¶ added in v0.8.0
func (x *GroupKeyActionEvent) GetWorkflowRunId() string
func (*GroupKeyActionEvent) ProtoMessage ¶ added in v0.8.0
func (*GroupKeyActionEvent) ProtoMessage()
func (*GroupKeyActionEvent) ProtoReflect ¶ added in v0.8.0
func (x *GroupKeyActionEvent) ProtoReflect() protoreflect.Message
func (*GroupKeyActionEvent) Reset ¶ added in v0.8.0
func (x *GroupKeyActionEvent) Reset()
func (*GroupKeyActionEvent) String ¶ added in v0.8.0
func (x *GroupKeyActionEvent) String() string
type GroupKeyActionEventType ¶ added in v0.8.0
type GroupKeyActionEventType int32
const ( GroupKeyActionEventType_GROUP_KEY_EVENT_TYPE_UNKNOWN GroupKeyActionEventType = 0 GroupKeyActionEventType_GROUP_KEY_EVENT_TYPE_STARTED GroupKeyActionEventType = 1 GroupKeyActionEventType_GROUP_KEY_EVENT_TYPE_COMPLETED GroupKeyActionEventType = 2 GroupKeyActionEventType_GROUP_KEY_EVENT_TYPE_FAILED GroupKeyActionEventType = 3 )
func (GroupKeyActionEventType) Descriptor ¶ added in v0.8.0
func (GroupKeyActionEventType) Descriptor() protoreflect.EnumDescriptor
func (GroupKeyActionEventType) Enum ¶ added in v0.8.0
func (x GroupKeyActionEventType) Enum() *GroupKeyActionEventType
func (GroupKeyActionEventType) EnumDescriptor
deprecated
added in
v0.8.0
func (GroupKeyActionEventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupKeyActionEventType.Descriptor instead.
func (GroupKeyActionEventType) Number ¶ added in v0.8.0
func (x GroupKeyActionEventType) Number() protoreflect.EnumNumber
func (GroupKeyActionEventType) String ¶ added in v0.8.0
func (x GroupKeyActionEventType) String() string
func (GroupKeyActionEventType) Type ¶ added in v0.8.0
func (GroupKeyActionEventType) Type() protoreflect.EnumType
type ResourceEventType ¶ added in v0.9.0
type ResourceEventType int32
const ( ResourceEventType_RESOURCE_EVENT_TYPE_UNKNOWN ResourceEventType = 0 ResourceEventType_RESOURCE_EVENT_TYPE_STARTED ResourceEventType = 1 ResourceEventType_RESOURCE_EVENT_TYPE_COMPLETED ResourceEventType = 2 ResourceEventType_RESOURCE_EVENT_TYPE_FAILED ResourceEventType = 3 ResourceEventType_RESOURCE_EVENT_TYPE_CANCELLED ResourceEventType = 4 ResourceEventType_RESOURCE_EVENT_TYPE_TIMED_OUT ResourceEventType = 5 )
func (ResourceEventType) Descriptor ¶ added in v0.9.0
func (ResourceEventType) Descriptor() protoreflect.EnumDescriptor
func (ResourceEventType) Enum ¶ added in v0.9.0
func (x ResourceEventType) Enum() *ResourceEventType
func (ResourceEventType) EnumDescriptor
deprecated
added in
v0.9.0
func (ResourceEventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResourceEventType.Descriptor instead.
func (ResourceEventType) Number ¶ added in v0.9.0
func (x ResourceEventType) Number() protoreflect.EnumNumber
func (ResourceEventType) String ¶ added in v0.9.0
func (x ResourceEventType) String() string
func (ResourceEventType) Type ¶ added in v0.9.0
func (ResourceEventType) Type() protoreflect.EnumType
type ResourceType ¶ added in v0.9.0
type ResourceType int32
const ( ResourceType_RESOURCE_TYPE_UNKNOWN ResourceType = 0 ResourceType_RESOURCE_TYPE_STEP_RUN ResourceType = 1 ResourceType_RESOURCE_TYPE_WORKFLOW_RUN ResourceType = 2 )
func (ResourceType) Descriptor ¶ added in v0.9.0
func (ResourceType) Descriptor() protoreflect.EnumDescriptor
func (ResourceType) Enum ¶ added in v0.9.0
func (x ResourceType) Enum() *ResourceType
func (ResourceType) EnumDescriptor
deprecated
added in
v0.9.0
func (ResourceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResourceType.Descriptor instead.
func (ResourceType) Number ¶ added in v0.9.0
func (x ResourceType) Number() protoreflect.EnumNumber
func (ResourceType) String ¶ added in v0.9.0
func (x ResourceType) String() string
func (ResourceType) Type ¶ added in v0.9.0
func (ResourceType) Type() protoreflect.EnumType
type StepActionEvent ¶ added in v0.8.0
type StepActionEvent struct { // the id of the worker WorkerId string `protobuf:"bytes,1,opt,name=workerId,proto3" json:"workerId,omitempty"` // the id of the job JobId string `protobuf:"bytes,2,opt,name=jobId,proto3" json:"jobId,omitempty"` // the job run id JobRunId string `protobuf:"bytes,3,opt,name=jobRunId,proto3" json:"jobRunId,omitempty"` // the id of the step StepId string `protobuf:"bytes,4,opt,name=stepId,proto3" json:"stepId,omitempty"` // the step run id StepRunId string `protobuf:"bytes,5,opt,name=stepRunId,proto3" json:"stepRunId,omitempty"` // the action id ActionId string `protobuf:"bytes,6,opt,name=actionId,proto3" json:"actionId,omitempty"` EventTimestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=eventTimestamp,proto3" json:"eventTimestamp,omitempty"` // the step event type EventType StepActionEventType `protobuf:"varint,8,opt,name=eventType,proto3,enum=StepActionEventType" json:"eventType,omitempty"` // the event payload EventPayload string `protobuf:"bytes,9,opt,name=eventPayload,proto3" json:"eventPayload,omitempty"` // contains filtered or unexported fields }
func (*StepActionEvent) Descriptor
deprecated
added in
v0.8.0
func (*StepActionEvent) Descriptor() ([]byte, []int)
Deprecated: Use StepActionEvent.ProtoReflect.Descriptor instead.
func (*StepActionEvent) GetActionId ¶ added in v0.8.0
func (x *StepActionEvent) GetActionId() string
func (*StepActionEvent) GetEventPayload ¶ added in v0.8.0
func (x *StepActionEvent) GetEventPayload() string
func (*StepActionEvent) GetEventTimestamp ¶ added in v0.8.0
func (x *StepActionEvent) GetEventTimestamp() *timestamppb.Timestamp
func (*StepActionEvent) GetEventType ¶ added in v0.8.0
func (x *StepActionEvent) GetEventType() StepActionEventType
func (*StepActionEvent) GetJobId ¶ added in v0.8.0
func (x *StepActionEvent) GetJobId() string
func (*StepActionEvent) GetJobRunId ¶ added in v0.8.0
func (x *StepActionEvent) GetJobRunId() string
func (*StepActionEvent) GetStepId ¶ added in v0.8.0
func (x *StepActionEvent) GetStepId() string
func (*StepActionEvent) GetStepRunId ¶ added in v0.8.0
func (x *StepActionEvent) GetStepRunId() string
func (*StepActionEvent) GetWorkerId ¶ added in v0.8.0
func (x *StepActionEvent) GetWorkerId() string
func (*StepActionEvent) ProtoMessage ¶ added in v0.8.0
func (*StepActionEvent) ProtoMessage()
func (*StepActionEvent) ProtoReflect ¶ added in v0.8.0
func (x *StepActionEvent) ProtoReflect() protoreflect.Message
func (*StepActionEvent) Reset ¶ added in v0.8.0
func (x *StepActionEvent) Reset()
func (*StepActionEvent) String ¶ added in v0.8.0
func (x *StepActionEvent) String() string
type StepActionEventType ¶ added in v0.8.0
type StepActionEventType int32
const ( StepActionEventType_STEP_EVENT_TYPE_UNKNOWN StepActionEventType = 0 StepActionEventType_STEP_EVENT_TYPE_STARTED StepActionEventType = 1 StepActionEventType_STEP_EVENT_TYPE_COMPLETED StepActionEventType = 2 StepActionEventType_STEP_EVENT_TYPE_FAILED StepActionEventType = 3 )
func (StepActionEventType) Descriptor ¶ added in v0.8.0
func (StepActionEventType) Descriptor() protoreflect.EnumDescriptor
func (StepActionEventType) Enum ¶ added in v0.8.0
func (x StepActionEventType) Enum() *StepActionEventType
func (StepActionEventType) EnumDescriptor
deprecated
added in
v0.8.0
func (StepActionEventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use StepActionEventType.Descriptor instead.
func (StepActionEventType) Number ¶ added in v0.8.0
func (x StepActionEventType) Number() protoreflect.EnumNumber
func (StepActionEventType) String ¶ added in v0.8.0
func (x StepActionEventType) String() string
func (StepActionEventType) Type ¶ added in v0.8.0
func (StepActionEventType) Type() protoreflect.EnumType
type SubscribeToWorkflowEventsRequest ¶ added in v0.9.0
type SubscribeToWorkflowEventsRequest struct { // the id of the workflow run WorkflowRunId string `protobuf:"bytes,1,opt,name=workflowRunId,proto3" json:"workflowRunId,omitempty"` // contains filtered or unexported fields }
func (*SubscribeToWorkflowEventsRequest) Descriptor
deprecated
added in
v0.9.0
func (*SubscribeToWorkflowEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeToWorkflowEventsRequest.ProtoReflect.Descriptor instead.
func (*SubscribeToWorkflowEventsRequest) GetWorkflowRunId ¶ added in v0.9.0
func (x *SubscribeToWorkflowEventsRequest) GetWorkflowRunId() string
func (*SubscribeToWorkflowEventsRequest) ProtoMessage ¶ added in v0.9.0
func (*SubscribeToWorkflowEventsRequest) ProtoMessage()
func (*SubscribeToWorkflowEventsRequest) ProtoReflect ¶ added in v0.9.0
func (x *SubscribeToWorkflowEventsRequest) ProtoReflect() protoreflect.Message
func (*SubscribeToWorkflowEventsRequest) Reset ¶ added in v0.9.0
func (x *SubscribeToWorkflowEventsRequest) Reset()
func (*SubscribeToWorkflowEventsRequest) String ¶ added in v0.9.0
func (x *SubscribeToWorkflowEventsRequest) String() string
type UnimplementedDispatcherServer ¶
type UnimplementedDispatcherServer struct { }
UnimplementedDispatcherServer must be embedded to have forward compatible implementations.
func (UnimplementedDispatcherServer) Listen ¶
func (UnimplementedDispatcherServer) Listen(*WorkerListenRequest, Dispatcher_ListenServer) error
func (UnimplementedDispatcherServer) Register ¶
func (UnimplementedDispatcherServer) Register(context.Context, *WorkerRegisterRequest) (*WorkerRegisterResponse, error)
func (UnimplementedDispatcherServer) SendGroupKeyActionEvent ¶ added in v0.8.0
func (UnimplementedDispatcherServer) SendGroupKeyActionEvent(context.Context, *GroupKeyActionEvent) (*ActionEventResponse, error)
func (UnimplementedDispatcherServer) SendStepActionEvent ¶ added in v0.8.0
func (UnimplementedDispatcherServer) SendStepActionEvent(context.Context, *StepActionEvent) (*ActionEventResponse, error)
func (UnimplementedDispatcherServer) SubscribeToWorkflowEvents ¶ added in v0.9.0
func (UnimplementedDispatcherServer) SubscribeToWorkflowEvents(*SubscribeToWorkflowEventsRequest, Dispatcher_SubscribeToWorkflowEventsServer) error
func (UnimplementedDispatcherServer) Unsubscribe ¶
func (UnimplementedDispatcherServer) Unsubscribe(context.Context, *WorkerUnsubscribeRequest) (*WorkerUnsubscribeResponse, error)
type UnsafeDispatcherServer ¶
type UnsafeDispatcherServer interface {
// contains filtered or unexported methods
}
UnsafeDispatcherServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DispatcherServer will result in compilation errors.
type WorkerListenRequest ¶
type WorkerListenRequest struct { // the id of the worker WorkerId string `protobuf:"bytes,1,opt,name=workerId,proto3" json:"workerId,omitempty"` // contains filtered or unexported fields }
func (*WorkerListenRequest) Descriptor
deprecated
func (*WorkerListenRequest) Descriptor() ([]byte, []int)
Deprecated: Use WorkerListenRequest.ProtoReflect.Descriptor instead.
func (*WorkerListenRequest) GetWorkerId ¶
func (x *WorkerListenRequest) GetWorkerId() string
func (*WorkerListenRequest) ProtoMessage ¶
func (*WorkerListenRequest) ProtoMessage()
func (*WorkerListenRequest) ProtoReflect ¶
func (x *WorkerListenRequest) ProtoReflect() protoreflect.Message
func (*WorkerListenRequest) Reset ¶
func (x *WorkerListenRequest) Reset()
func (*WorkerListenRequest) String ¶
func (x *WorkerListenRequest) String() string
type WorkerRegisterRequest ¶
type WorkerRegisterRequest struct { // the name of the worker WorkerName string `protobuf:"bytes,1,opt,name=workerName,proto3" json:"workerName,omitempty"` // a list of actions that this worker can run Actions []string `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` // (optional) the services for this worker Services []string `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*WorkerRegisterRequest) Descriptor
deprecated
func (*WorkerRegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use WorkerRegisterRequest.ProtoReflect.Descriptor instead.
func (*WorkerRegisterRequest) GetActions ¶
func (x *WorkerRegisterRequest) GetActions() []string
func (*WorkerRegisterRequest) GetServices ¶
func (x *WorkerRegisterRequest) GetServices() []string
func (*WorkerRegisterRequest) GetWorkerName ¶
func (x *WorkerRegisterRequest) GetWorkerName() string
func (*WorkerRegisterRequest) ProtoMessage ¶
func (*WorkerRegisterRequest) ProtoMessage()
func (*WorkerRegisterRequest) ProtoReflect ¶
func (x *WorkerRegisterRequest) ProtoReflect() protoreflect.Message
func (*WorkerRegisterRequest) Reset ¶
func (x *WorkerRegisterRequest) Reset()
func (*WorkerRegisterRequest) String ¶
func (x *WorkerRegisterRequest) String() string
type WorkerRegisterResponse ¶
type WorkerRegisterResponse struct { // the tenant id TenantId string `protobuf:"bytes,1,opt,name=tenantId,proto3" json:"tenantId,omitempty"` // the id of the worker WorkerId string `protobuf:"bytes,2,opt,name=workerId,proto3" json:"workerId,omitempty"` // the name of the worker WorkerName string `protobuf:"bytes,3,opt,name=workerName,proto3" json:"workerName,omitempty"` // contains filtered or unexported fields }
func (*WorkerRegisterResponse) Descriptor
deprecated
func (*WorkerRegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use WorkerRegisterResponse.ProtoReflect.Descriptor instead.
func (*WorkerRegisterResponse) GetTenantId ¶
func (x *WorkerRegisterResponse) GetTenantId() string
func (*WorkerRegisterResponse) GetWorkerId ¶
func (x *WorkerRegisterResponse) GetWorkerId() string
func (*WorkerRegisterResponse) GetWorkerName ¶
func (x *WorkerRegisterResponse) GetWorkerName() string
func (*WorkerRegisterResponse) ProtoMessage ¶
func (*WorkerRegisterResponse) ProtoMessage()
func (*WorkerRegisterResponse) ProtoReflect ¶
func (x *WorkerRegisterResponse) ProtoReflect() protoreflect.Message
func (*WorkerRegisterResponse) Reset ¶
func (x *WorkerRegisterResponse) Reset()
func (*WorkerRegisterResponse) String ¶
func (x *WorkerRegisterResponse) String() string
type WorkerUnsubscribeRequest ¶
type WorkerUnsubscribeRequest struct { // the id of the worker WorkerId string `protobuf:"bytes,1,opt,name=workerId,proto3" json:"workerId,omitempty"` // contains filtered or unexported fields }
func (*WorkerUnsubscribeRequest) Descriptor
deprecated
func (*WorkerUnsubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use WorkerUnsubscribeRequest.ProtoReflect.Descriptor instead.
func (*WorkerUnsubscribeRequest) GetWorkerId ¶
func (x *WorkerUnsubscribeRequest) GetWorkerId() string
func (*WorkerUnsubscribeRequest) ProtoMessage ¶
func (*WorkerUnsubscribeRequest) ProtoMessage()
func (*WorkerUnsubscribeRequest) ProtoReflect ¶
func (x *WorkerUnsubscribeRequest) ProtoReflect() protoreflect.Message
func (*WorkerUnsubscribeRequest) Reset ¶
func (x *WorkerUnsubscribeRequest) Reset()
func (*WorkerUnsubscribeRequest) String ¶
func (x *WorkerUnsubscribeRequest) String() string
type WorkerUnsubscribeResponse ¶
type WorkerUnsubscribeResponse struct { // the tenant id to unsubscribe from TenantId string `protobuf:"bytes,1,opt,name=tenantId,proto3" json:"tenantId,omitempty"` // the id of the worker WorkerId string `protobuf:"bytes,2,opt,name=workerId,proto3" json:"workerId,omitempty"` // contains filtered or unexported fields }
func (*WorkerUnsubscribeResponse) Descriptor
deprecated
func (*WorkerUnsubscribeResponse) Descriptor() ([]byte, []int)
Deprecated: Use WorkerUnsubscribeResponse.ProtoReflect.Descriptor instead.
func (*WorkerUnsubscribeResponse) GetTenantId ¶
func (x *WorkerUnsubscribeResponse) GetTenantId() string
func (*WorkerUnsubscribeResponse) GetWorkerId ¶
func (x *WorkerUnsubscribeResponse) GetWorkerId() string
func (*WorkerUnsubscribeResponse) ProtoMessage ¶
func (*WorkerUnsubscribeResponse) ProtoMessage()
func (*WorkerUnsubscribeResponse) ProtoReflect ¶
func (x *WorkerUnsubscribeResponse) ProtoReflect() protoreflect.Message
func (*WorkerUnsubscribeResponse) Reset ¶
func (x *WorkerUnsubscribeResponse) Reset()
func (*WorkerUnsubscribeResponse) String ¶
func (x *WorkerUnsubscribeResponse) String() string
type WorkflowEvent ¶ added in v0.9.0
type WorkflowEvent struct { // the id of the workflow run WorkflowRunId string `protobuf:"bytes,1,opt,name=workflowRunId,proto3" json:"workflowRunId,omitempty"` ResourceType ResourceType `protobuf:"varint,2,opt,name=resourceType,proto3,enum=ResourceType" json:"resourceType,omitempty"` EventType ResourceEventType `protobuf:"varint,3,opt,name=eventType,proto3,enum=ResourceEventType" json:"eventType,omitempty"` ResourceId string `protobuf:"bytes,4,opt,name=resourceId,proto3" json:"resourceId,omitempty"` EventTimestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=eventTimestamp,proto3" json:"eventTimestamp,omitempty"` // the event payload EventPayload string `protobuf:"bytes,6,opt,name=eventPayload,proto3" json:"eventPayload,omitempty"` // contains filtered or unexported fields }
func (*WorkflowEvent) Descriptor
deprecated
added in
v0.9.0
func (*WorkflowEvent) Descriptor() ([]byte, []int)
Deprecated: Use WorkflowEvent.ProtoReflect.Descriptor instead.
func (*WorkflowEvent) GetEventPayload ¶ added in v0.9.0
func (x *WorkflowEvent) GetEventPayload() string
func (*WorkflowEvent) GetEventTimestamp ¶ added in v0.9.0
func (x *WorkflowEvent) GetEventTimestamp() *timestamppb.Timestamp
func (*WorkflowEvent) GetEventType ¶ added in v0.9.0
func (x *WorkflowEvent) GetEventType() ResourceEventType
func (*WorkflowEvent) GetResourceId ¶ added in v0.9.0
func (x *WorkflowEvent) GetResourceId() string
func (*WorkflowEvent) GetResourceType ¶ added in v0.9.0
func (x *WorkflowEvent) GetResourceType() ResourceType
func (*WorkflowEvent) GetWorkflowRunId ¶ added in v0.9.0
func (x *WorkflowEvent) GetWorkflowRunId() string
func (*WorkflowEvent) ProtoMessage ¶ added in v0.9.0
func (*WorkflowEvent) ProtoMessage()
func (*WorkflowEvent) ProtoReflect ¶ added in v0.9.0
func (x *WorkflowEvent) ProtoReflect() protoreflect.Message
func (*WorkflowEvent) Reset ¶ added in v0.9.0
func (x *WorkflowEvent) Reset()
func (*WorkflowEvent) String ¶ added in v0.9.0
func (x *WorkflowEvent) String() string