Documentation ¶
Index ¶
Constants ¶
View Source
const WorkflowGetApiPath = "/api/v1/workflow/get"
View Source
const WorkflowGetDataObjectsApiPath = "/api/v1/workflow/dataobjects/get"
View Source
const WorkflowGetSearchAttributesApiPath = "/api/v1/workflow/searchattributes/get"
View Source
const WorkflowGetWithWaitApiPath = "/api/v1/workflow/getWithWait"
View Source
const WorkflowResetApiPath = "/api/v1/workflow/reset"
View Source
const WorkflowSearchApiPath = "/api/v1/workflow/search"
View Source
const WorkflowSignalApiPath = "/api/v1/workflow/signal"
View Source
const WorkflowSkipTimerApiPath = "/api/v1/workflow/timer/skip"
View Source
const WorkflowStartApiPath = "/api/v1/workflow/start"
View Source
const WorkflowStopApiPath = "/api/v1/workflow/stop"
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(client UnifiedClient, logger log.Logger) *gin.Engine
NewService returns a new router.
Types ¶
type ApiService ¶
type ApiService interface { ApiV1WorkflowStartPost(ctx context.Context, request iwfidl.WorkflowStartRequest) (*iwfidl.WorkflowStartResponse, *errors.ErrorAndStatus) ApiV1WorkflowSignalPost(ctx context.Context, request iwfidl.WorkflowSignalRequest) *errors.ErrorAndStatus ApiV1WorkflowStopPost(ctx context.Context, request iwfidl.WorkflowStopRequest) *errors.ErrorAndStatus ApiV1WorkflowGetQueryAttributesPost(ctx context.Context, request iwfidl.WorkflowGetDataObjectsRequest) (*iwfidl.WorkflowGetDataObjectsResponse, *errors.ErrorAndStatus) ApiV1WorkflowGetSearchAttributesPost(ctx context.Context, request iwfidl.WorkflowGetSearchAttributesRequest) (*iwfidl.WorkflowGetSearchAttributesResponse, *errors.ErrorAndStatus) ApiV1WorkflowGetPost(ctx context.Context, request iwfidl.WorkflowGetRequest) (*iwfidl.WorkflowGetResponse, *errors.ErrorAndStatus) ApiV1WorkflowGetWithWaitPost(ctx context.Context, request iwfidl.WorkflowGetRequest) (*iwfidl.WorkflowGetResponse, *errors.ErrorAndStatus) ApiV1WorkflowSearchPost(ctx context.Context, request iwfidl.WorkflowSearchRequest) (*iwfidl.WorkflowSearchResponse, *errors.ErrorAndStatus) ApiV1WorkflowResetPost(ctx context.Context, request iwfidl.WorkflowResetRequest) (*iwfidl.WorkflowResetResponse, *errors.ErrorAndStatus) ApiV1WorkflowSkipTimerPost(ctx context.Context, request iwfidl.WorkflowSkipTimerRequest) *errors.ErrorAndStatus Close() }
func NewApiService ¶
func NewApiService(client UnifiedClient, taskQueue string, logger log.Logger) (ApiService, error)
type DescribeWorkflowExecutionResponse ¶
type DescribeWorkflowExecutionResponse struct { Status iwfidl.WorkflowStatus RunId string SearchAttributes map[string]iwfidl.SearchAttribute }
type ListWorkflowExecutionsResponse ¶
type ListWorkflowExecutionsResponse struct { Executions []iwfidl.WorkflowSearchResponseEntry NextPageToken []byte }
type StartWorkflowOptions ¶
type StartWorkflowOptions struct { ID string TaskQueue string WorkflowExecutionTimeout time.Duration WorkflowIDReusePolicy *iwfidl.WorkflowIDReusePolicy CronSchedule *string RetryPolicy *iwfidl.RetryPolicy SearchAttributes map[string]interface{} }
type UnifiedClient ¶
type UnifiedClient interface { Close() StartInterpreterWorkflow(ctx context.Context, options StartWorkflowOptions, args ...interface{}) (runId string, err error) SignalWorkflow(ctx context.Context, workflowID string, runID string, signalName string, arg interface{}) error CancelWorkflow(ctx context.Context, workflowID string, runID string) error ListWorkflow(ctx context.Context, request *ListWorkflowExecutionsRequest) (*ListWorkflowExecutionsResponse, error) QueryWorkflow(ctx context.Context, valuePtr interface{}, workflowID string, runID string, queryType string, args ...interface{}) error DescribeWorkflowExecution(ctx context.Context, workflowID, runID string, requestedSearchAttributes []iwfidl.SearchAttributeKeyAndType) (*DescribeWorkflowExecutionResponse, error) GetWorkflowResult(ctx context.Context, valuePtr interface{}, workflowID string, runID string) error ResetWorkflow(ctx context.Context, request iwfidl.WorkflowResetRequest) (runId string, err error) // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.