Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("this component doesn't implement the current API operation")
Functions ¶
This section is empty.
Types ¶
type GetRequest ¶
type GetRequest struct {
InstanceID string `json:"instanceID"`
}
GetRequest is the struct describing a get workflow state request.
type PauseRequest ¶
type PauseRequest struct {
InstanceID string `json:"instanceID"`
}
PauseRequest is the struct describing a pause workflow request.
type PurgeRequest ¶
type PurgeRequest struct {
InstanceID string `json:"instanceID"`
}
PurgeRequest is the object describing a Purge request.
type RaiseEventRequest ¶
type RaiseEventRequest struct { InstanceID string `json:"instanceID"` EventName string `json:"name"` EventData []byte `json:"data"` }
RaiseEventRequest is the struct describing a raise workflow event request.
type ResumeRequest ¶
type ResumeRequest struct {
InstanceID string `json:"instanceID"`
}
ResumeRequest is the struct describing a resume workflow request.
type StartRequest ¶
type StartRequest struct { InstanceID string `json:"instanceID"` Options map[string]string `json:"options"` WorkflowName string `json:"workflowName"` WorkflowInput []byte `json:"workflowInput"` }
StartRequest is the struct describing a start workflow request.
type StartResponse ¶
type StartResponse struct {
InstanceID string `json:"instanceID"`
}
type StateResponse ¶
type StateResponse struct {
Workflow *WorkflowState `json:"workflow"`
}
type TerminateRequest ¶
type TerminateRequest struct {
InstanceID string `json:"instanceID"`
}
TerminateRequest is the struct describing a terminate workflow request.
type Workflow ¶
type Workflow interface { Init(metadata Metadata) error Start(ctx context.Context, req *StartRequest) (*StartResponse, error) Terminate(ctx context.Context, req *TerminateRequest) error Get(ctx context.Context, req *GetRequest) (*StateResponse, error) RaiseEvent(ctx context.Context, req *RaiseEventRequest) error Purge(ctx context.Context, req *PurgeRequest) error Pause(ctx context.Context, req *PauseRequest) error Resume(ctx context.Context, req *ResumeRequest) error GetComponentMetadata() map[string]string }
Workflow is an interface to perform operations on Workflow.
type WorkflowState ¶
Click to show internal directories.
Click to hide internal directories.