Skip to content

Commit

Permalink
Explicitly list frontend handler interface (cadence-workflow#3763)
Browse files Browse the repository at this point in the history
  • Loading branch information
vytautas-karpavicius authored Nov 17, 2020
1 parent 5d7f934 commit 94e61d8
Showing 1 changed file with 43 additions and 4 deletions.
47 changes: 43 additions & 4 deletions service/frontend/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,53 @@
package frontend

import (
"github.com/uber/cadence/.gen/go/cadence/workflowserviceserver"
"github.com/uber/cadence/.gen/go/health/metaserver"
"context"

"github.com/uber/cadence/.gen/go/health"
"github.com/uber/cadence/.gen/go/shared"
)

type (
// Handler is interface wrapping frontend handler
Handler interface {
metaserver.Interface
workflowserviceserver.Interface
Health(context.Context) (*health.HealthStatus, error)
CountWorkflowExecutions(context.Context, *shared.CountWorkflowExecutionsRequest) (*shared.CountWorkflowExecutionsResponse, error)
DeprecateDomain(context.Context, *shared.DeprecateDomainRequest) error
DescribeDomain(context.Context, *shared.DescribeDomainRequest) (*shared.DescribeDomainResponse, error)
DescribeTaskList(context.Context, *shared.DescribeTaskListRequest) (*shared.DescribeTaskListResponse, error)
DescribeWorkflowExecution(context.Context, *shared.DescribeWorkflowExecutionRequest) (*shared.DescribeWorkflowExecutionResponse, error)
GetClusterInfo(context.Context) (*shared.ClusterInfo, error)
GetSearchAttributes(context.Context) (*shared.GetSearchAttributesResponse, error)
GetWorkflowExecutionHistory(context.Context, *shared.GetWorkflowExecutionHistoryRequest) (*shared.GetWorkflowExecutionHistoryResponse, error)
ListArchivedWorkflowExecutions(context.Context, *shared.ListArchivedWorkflowExecutionsRequest) (*shared.ListArchivedWorkflowExecutionsResponse, error)
ListClosedWorkflowExecutions(context.Context, *shared.ListClosedWorkflowExecutionsRequest) (*shared.ListClosedWorkflowExecutionsResponse, error)
ListDomains(context.Context, *shared.ListDomainsRequest) (*shared.ListDomainsResponse, error)
ListOpenWorkflowExecutions(context.Context, *shared.ListOpenWorkflowExecutionsRequest) (*shared.ListOpenWorkflowExecutionsResponse, error)
ListTaskListPartitions(context.Context, *shared.ListTaskListPartitionsRequest) (*shared.ListTaskListPartitionsResponse, error)
ListWorkflowExecutions(context.Context, *shared.ListWorkflowExecutionsRequest) (*shared.ListWorkflowExecutionsResponse, error)
PollForActivityTask(context.Context, *shared.PollForActivityTaskRequest) (*shared.PollForActivityTaskResponse, error)
PollForDecisionTask(context.Context, *shared.PollForDecisionTaskRequest) (*shared.PollForDecisionTaskResponse, error)
QueryWorkflow(context.Context, *shared.QueryWorkflowRequest) (*shared.QueryWorkflowResponse, error)
RecordActivityTaskHeartbeat(context.Context, *shared.RecordActivityTaskHeartbeatRequest) (*shared.RecordActivityTaskHeartbeatResponse, error)
RecordActivityTaskHeartbeatByID(context.Context, *shared.RecordActivityTaskHeartbeatByIDRequest) (*shared.RecordActivityTaskHeartbeatResponse, error)
RegisterDomain(context.Context, *shared.RegisterDomainRequest) error
RequestCancelWorkflowExecution(context.Context, *shared.RequestCancelWorkflowExecutionRequest) error
ResetStickyTaskList(context.Context, *shared.ResetStickyTaskListRequest) (*shared.ResetStickyTaskListResponse, error)
ResetWorkflowExecution(context.Context, *shared.ResetWorkflowExecutionRequest) (*shared.ResetWorkflowExecutionResponse, error)
RespondActivityTaskCanceled(context.Context, *shared.RespondActivityTaskCanceledRequest) error
RespondActivityTaskCanceledByID(context.Context, *shared.RespondActivityTaskCanceledByIDRequest) error
RespondActivityTaskCompleted(context.Context, *shared.RespondActivityTaskCompletedRequest) error
RespondActivityTaskCompletedByID(context.Context, *shared.RespondActivityTaskCompletedByIDRequest) error
RespondActivityTaskFailed(context.Context, *shared.RespondActivityTaskFailedRequest) error
RespondActivityTaskFailedByID(context.Context, *shared.RespondActivityTaskFailedByIDRequest) error
RespondDecisionTaskCompleted(context.Context, *shared.RespondDecisionTaskCompletedRequest) (*shared.RespondDecisionTaskCompletedResponse, error)
RespondDecisionTaskFailed(context.Context, *shared.RespondDecisionTaskFailedRequest) error
RespondQueryTaskCompleted(context.Context, *shared.RespondQueryTaskCompletedRequest) error
ScanWorkflowExecutions(context.Context, *shared.ListWorkflowExecutionsRequest) (*shared.ListWorkflowExecutionsResponse, error)
SignalWithStartWorkflowExecution(context.Context, *shared.SignalWithStartWorkflowExecutionRequest) (*shared.StartWorkflowExecutionResponse, error)
SignalWorkflowExecution(context.Context, *shared.SignalWorkflowExecutionRequest) error
StartWorkflowExecution(context.Context, *shared.StartWorkflowExecutionRequest) (*shared.StartWorkflowExecutionResponse, error)
TerminateWorkflowExecution(context.Context, *shared.TerminateWorkflowExecutionRequest) error
UpdateDomain(context.Context, *shared.UpdateDomainRequest) (*shared.UpdateDomainResponse, error)
}
)

0 comments on commit 94e61d8

Please sign in to comment.