frontend

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2021 License: MIT Imports: 52 Imported by: 7

Documentation

Overview

Package frontend is a generated GoMock package.

Package frontend is a generated GoMock package.

Index

Constants

View Source
const (
	// DCRedirectionPolicyDefault means no redirection
	DCRedirectionPolicyDefault = ""
	// DCRedirectionPolicyNoop means no redirection
	DCRedirectionPolicyNoop = "noop"
	// DCRedirectionPolicySelectedAPIsForwarding means forwarding the following APIs based domain
	// 1. StartWorkflowExecution
	// 2. SignalWithStartWorkflowExecution
	// 3. SignalWorkflowExecution
	// 4. RequestCancelWorkflowExecution
	// 5. TerminateWorkflowExecution
	// 6. QueryWorkflow
	// please also reference selectedAPIsForwardingRedirectionPolicyWhitelistedAPIs
	DCRedirectionPolicySelectedAPIsForwarding = "selected-apis-forwarding"
)

Variables

This section is empty.

Functions

func NewAdminHandler added in v0.3.12

func NewAdminHandler(
	resource resource.Resource,
	params *service.BootstrapParams,
	config *Config,
) *adminHandlerImpl

NewAdminHandler creates a thrift handler for the cadence admin service

func NewService

func NewService(
	params *service.BootstrapParams,
) (resource.Resource, error)

NewService builds a new cadence-frontend service

Types

type AccessControlledWorkflowHandler added in v0.11.0

type AccessControlledWorkflowHandler struct {
	resource.Resource
	// contains filtered or unexported fields
}

AccessControlledWorkflowHandler frontend handler wrapper for authentication and authorization

func NewAccessControlledHandlerImpl added in v0.11.0

func NewAccessControlledHandlerImpl(wfHandler Handler, resource resource.Resource, authorizer authorization.Authorizer) *AccessControlledWorkflowHandler

NewAccessControlledHandlerImpl creates frontend handler with authentication support

func (*AccessControlledWorkflowHandler) CountWorkflowExecutions added in v0.11.0

CountWorkflowExecutions API call

func (*AccessControlledWorkflowHandler) DeprecateDomain added in v0.11.0

DeprecateDomain API call

func (*AccessControlledWorkflowHandler) DescribeDomain added in v0.11.0

DescribeDomain API call

func (*AccessControlledWorkflowHandler) DescribeTaskList added in v0.11.0

DescribeTaskList API call

func (*AccessControlledWorkflowHandler) DescribeWorkflowExecution added in v0.11.0

DescribeWorkflowExecution API call

func (*AccessControlledWorkflowHandler) GetClusterInfo added in v0.11.0

func (a *AccessControlledWorkflowHandler) GetClusterInfo(
	ctx context.Context,
) (*types.ClusterInfo, error)

GetClusterInfo API call

func (*AccessControlledWorkflowHandler) GetSearchAttributes added in v0.11.0

GetSearchAttributes API call

func (*AccessControlledWorkflowHandler) GetWorkflowExecutionHistory added in v0.11.0

GetWorkflowExecutionHistory API call

func (*AccessControlledWorkflowHandler) Health added in v0.11.0

Health callback for for health check

func (*AccessControlledWorkflowHandler) ListArchivedWorkflowExecutions added in v0.11.0

ListArchivedWorkflowExecutions API call

func (*AccessControlledWorkflowHandler) ListClosedWorkflowExecutions added in v0.11.0

ListClosedWorkflowExecutions API call

func (*AccessControlledWorkflowHandler) ListDomains added in v0.11.0

ListDomains API call

func (*AccessControlledWorkflowHandler) ListOpenWorkflowExecutions added in v0.11.0

ListOpenWorkflowExecutions API call

func (*AccessControlledWorkflowHandler) ListTaskListPartitions added in v0.11.0

ListTaskListPartitions API call

func (*AccessControlledWorkflowHandler) ListWorkflowExecutions added in v0.11.0

ListWorkflowExecutions API call

func (*AccessControlledWorkflowHandler) PollForActivityTask added in v0.11.0

PollForActivityTask API call

func (*AccessControlledWorkflowHandler) PollForDecisionTask added in v0.11.0

PollForDecisionTask API call

func (*AccessControlledWorkflowHandler) QueryWorkflow added in v0.11.0

QueryWorkflow API call

func (*AccessControlledWorkflowHandler) RecordActivityTaskHeartbeat added in v0.11.0

RecordActivityTaskHeartbeat API call

func (*AccessControlledWorkflowHandler) RecordActivityTaskHeartbeatByID added in v0.11.0

RecordActivityTaskHeartbeatByID API call

func (*AccessControlledWorkflowHandler) RegisterDomain added in v0.11.0

RegisterDomain API call

func (*AccessControlledWorkflowHandler) RequestCancelWorkflowExecution added in v0.11.0

func (a *AccessControlledWorkflowHandler) RequestCancelWorkflowExecution(
	ctx context.Context,
	request *types.RequestCancelWorkflowExecutionRequest,
) error

RequestCancelWorkflowExecution API call

func (*AccessControlledWorkflowHandler) ResetStickyTaskList added in v0.11.0

ResetStickyTaskList API call

func (*AccessControlledWorkflowHandler) ResetWorkflowExecution added in v0.11.0

ResetWorkflowExecution API call

func (*AccessControlledWorkflowHandler) RespondActivityTaskCanceled added in v0.11.0

func (a *AccessControlledWorkflowHandler) RespondActivityTaskCanceled(
	ctx context.Context,
	request *types.RespondActivityTaskCanceledRequest,
) error

RespondActivityTaskCanceled API call

func (*AccessControlledWorkflowHandler) RespondActivityTaskCanceledByID added in v0.11.0

func (a *AccessControlledWorkflowHandler) RespondActivityTaskCanceledByID(
	ctx context.Context,
	request *types.RespondActivityTaskCanceledByIDRequest,
) error

RespondActivityTaskCanceledByID API call

func (*AccessControlledWorkflowHandler) RespondActivityTaskCompleted added in v0.11.0

func (a *AccessControlledWorkflowHandler) RespondActivityTaskCompleted(
	ctx context.Context,
	request *types.RespondActivityTaskCompletedRequest,
) error

RespondActivityTaskCompleted API call

func (*AccessControlledWorkflowHandler) RespondActivityTaskCompletedByID added in v0.11.0

func (a *AccessControlledWorkflowHandler) RespondActivityTaskCompletedByID(
	ctx context.Context,
	request *types.RespondActivityTaskCompletedByIDRequest,
) error

RespondActivityTaskCompletedByID API call

func (*AccessControlledWorkflowHandler) RespondActivityTaskFailed added in v0.11.0

func (a *AccessControlledWorkflowHandler) RespondActivityTaskFailed(
	ctx context.Context,
	request *types.RespondActivityTaskFailedRequest,
) error

RespondActivityTaskFailed API call

func (*AccessControlledWorkflowHandler) RespondActivityTaskFailedByID added in v0.11.0

func (a *AccessControlledWorkflowHandler) RespondActivityTaskFailedByID(
	ctx context.Context,
	request *types.RespondActivityTaskFailedByIDRequest,
) error

RespondActivityTaskFailedByID API call

func (*AccessControlledWorkflowHandler) RespondDecisionTaskCompleted added in v0.11.0

RespondDecisionTaskCompleted API call

func (*AccessControlledWorkflowHandler) RespondDecisionTaskFailed added in v0.11.0

func (a *AccessControlledWorkflowHandler) RespondDecisionTaskFailed(
	ctx context.Context,
	request *types.RespondDecisionTaskFailedRequest,
) error

RespondDecisionTaskFailed API call

func (*AccessControlledWorkflowHandler) RespondQueryTaskCompleted added in v0.11.0

func (a *AccessControlledWorkflowHandler) RespondQueryTaskCompleted(
	ctx context.Context,
	request *types.RespondQueryTaskCompletedRequest,
) error

RespondQueryTaskCompleted API call

func (*AccessControlledWorkflowHandler) ScanWorkflowExecutions added in v0.11.0

ScanWorkflowExecutions API call

func (*AccessControlledWorkflowHandler) SignalWithStartWorkflowExecution added in v0.11.0

SignalWithStartWorkflowExecution API call

func (*AccessControlledWorkflowHandler) SignalWorkflowExecution added in v0.11.0

func (a *AccessControlledWorkflowHandler) SignalWorkflowExecution(
	ctx context.Context,
	request *types.SignalWorkflowExecutionRequest,
) error

SignalWorkflowExecution API call

func (*AccessControlledWorkflowHandler) StartWorkflowExecution added in v0.11.0

StartWorkflowExecution API call

func (*AccessControlledWorkflowHandler) TerminateWorkflowExecution added in v0.11.0

func (a *AccessControlledWorkflowHandler) TerminateWorkflowExecution(
	ctx context.Context,
	request *types.TerminateWorkflowExecutionRequest,
) error

TerminateWorkflowExecution API call

func (*AccessControlledWorkflowHandler) UpdateDomain added in v0.11.0

UpdateDomain API call

type AdminHandler added in v0.3.12

type AdminHandler interface {
	AddSearchAttribute(context.Context, *types.AddSearchAttributeRequest) error
	CloseShard(context.Context, *types.CloseShardRequest) error
	DescribeCluster(context.Context) (*types.DescribeClusterResponse, error)
	DescribeHistoryHost(context.Context, *types.DescribeHistoryHostRequest) (*types.DescribeHistoryHostResponse, error)
	DescribeQueue(context.Context, *types.DescribeQueueRequest) (*types.DescribeQueueResponse, error)
	DescribeWorkflowExecution(context.Context, *types.AdminDescribeWorkflowExecutionRequest) (*types.AdminDescribeWorkflowExecutionResponse, error)
	GetDLQReplicationMessages(context.Context, *types.GetDLQReplicationMessagesRequest) (*types.GetDLQReplicationMessagesResponse, error)
	GetDomainReplicationMessages(context.Context, *types.GetDomainReplicationMessagesRequest) (*types.GetDomainReplicationMessagesResponse, error)
	GetReplicationMessages(context.Context, *types.GetReplicationMessagesRequest) (*types.GetReplicationMessagesResponse, error)
	GetWorkflowExecutionRawHistoryV2(context.Context, *types.GetWorkflowExecutionRawHistoryV2Request) (*types.GetWorkflowExecutionRawHistoryV2Response, error)
	MergeDLQMessages(context.Context, *types.MergeDLQMessagesRequest) (*types.MergeDLQMessagesResponse, error)
	PurgeDLQMessages(context.Context, *types.PurgeDLQMessagesRequest) error
	ReadDLQMessages(context.Context, *types.ReadDLQMessagesRequest) (*types.ReadDLQMessagesResponse, error)
	ReapplyEvents(context.Context, *types.ReapplyEventsRequest) error
	RefreshWorkflowTasks(context.Context, *types.RefreshWorkflowTasksRequest) error
	RemoveTask(context.Context, *types.RemoveTaskRequest) error
	ResendReplicationTasks(context.Context, *types.ResendReplicationTasksRequest) error
	ResetQueue(context.Context, *types.ResetQueueRequest) error
}

AdminHandler interface for admin service

type AdminThriftHandler added in v0.17.0

type AdminThriftHandler struct {
	// contains filtered or unexported fields
}

AdminThriftHandler wrap underlying handler and handles Thrift related type conversions

func NewAdminThriftHandler added in v0.17.0

func NewAdminThriftHandler(h AdminHandler) AdminThriftHandler

NewAdminThriftHandler creates Thrift handler on top of underlying handler

func (AdminThriftHandler) AddSearchAttribute added in v0.17.0

func (t AdminThriftHandler) AddSearchAttribute(ctx context.Context, request *admin.AddSearchAttributeRequest) error

AddSearchAttribute forwards request to the underlying handler

func (AdminThriftHandler) CloseShard added in v0.17.0

func (t AdminThriftHandler) CloseShard(ctx context.Context, request *shared.CloseShardRequest) error

CloseShard forwards request to the underlying handler

func (AdminThriftHandler) DescribeCluster added in v0.17.0

DescribeCluster forwards request to the underlying handler

func (AdminThriftHandler) DescribeHistoryHost added in v0.17.0

DescribeHistoryHost forwards request to the underlying handler

func (AdminThriftHandler) DescribeQueue added in v0.17.0

DescribeQueue forwards request to the underlying handler

func (AdminThriftHandler) DescribeWorkflowExecution added in v0.17.0

DescribeWorkflowExecution forwards request to the underlying handler

func (AdminThriftHandler) GetDLQReplicationMessages added in v0.17.0

GetDLQReplicationMessages forwards request to the underlying handler

func (AdminThriftHandler) GetDomainReplicationMessages added in v0.17.0

GetDomainReplicationMessages forwards request to the underlying handler

func (AdminThriftHandler) GetReplicationMessages added in v0.17.0

GetReplicationMessages forwards request to the underlying handler

func (AdminThriftHandler) GetWorkflowExecutionRawHistoryV2 added in v0.17.0

GetWorkflowExecutionRawHistoryV2 forwards request to the underlying handler

func (AdminThriftHandler) MergeDLQMessages added in v0.17.0

MergeDLQMessages forwards request to the underlying handler

func (AdminThriftHandler) PurgeDLQMessages added in v0.17.0

func (t AdminThriftHandler) PurgeDLQMessages(ctx context.Context, request *replicator.PurgeDLQMessagesRequest) error

PurgeDLQMessages forwards request to the underlying handler

func (AdminThriftHandler) ReadDLQMessages added in v0.17.0

ReadDLQMessages forwards request to the underlying handler

func (AdminThriftHandler) ReapplyEvents added in v0.17.0

func (t AdminThriftHandler) ReapplyEvents(ctx context.Context, request *shared.ReapplyEventsRequest) error

ReapplyEvents forwards request to the underlying handler

func (AdminThriftHandler) RefreshWorkflowTasks added in v0.17.0

func (t AdminThriftHandler) RefreshWorkflowTasks(ctx context.Context, request *shared.RefreshWorkflowTasksRequest) error

RefreshWorkflowTasks forwards request to the underlying handler

func (AdminThriftHandler) RemoveTask added in v0.17.0

func (t AdminThriftHandler) RemoveTask(ctx context.Context, request *shared.RemoveTaskRequest) error

RemoveTask forwards request to the underlying handler

func (AdminThriftHandler) ResendReplicationTasks added in v0.17.0

func (t AdminThriftHandler) ResendReplicationTasks(ctx context.Context, request *admin.ResendReplicationTasksRequest) error

ResendReplicationTasks forwards request to the underlying handler

func (AdminThriftHandler) ResetQueue added in v0.17.0

func (t AdminThriftHandler) ResetQueue(ctx context.Context, request *shared.ResetQueueRequest) error

ResetQueue forwards request to the underlying handler

type Config added in v0.3.0

type Config struct {
	NumHistoryShards int

	PersistenceMaxQPS               dynamicconfig.IntPropertyFn
	PersistenceGlobalMaxQPS         dynamicconfig.IntPropertyFn
	VisibilityMaxPageSize           dynamicconfig.IntPropertyFnWithDomainFilter
	EnableVisibilitySampling        dynamicconfig.BoolPropertyFn
	EnableReadFromClosedExecutionV2 dynamicconfig.BoolPropertyFn
	VisibilityListMaxQPS            dynamicconfig.IntPropertyFnWithDomainFilter
	EnableReadVisibilityFromES      dynamicconfig.BoolPropertyFnWithDomainFilter
	ESVisibilityListMaxQPS          dynamicconfig.IntPropertyFnWithDomainFilter
	ESIndexMaxResultWindow          dynamicconfig.IntPropertyFn
	HistoryMaxPageSize              dynamicconfig.IntPropertyFnWithDomainFilter
	RPS                             dynamicconfig.IntPropertyFn
	MaxDomainRPSPerInstance         dynamicconfig.IntPropertyFnWithDomainFilter
	GlobalDomainRPS                 dynamicconfig.IntPropertyFnWithDomainFilter
	MaxIDLengthLimit                dynamicconfig.IntPropertyFnWithDomainFilter
	MaxIDLengthWarnLimit            dynamicconfig.IntPropertyFn
	MaxRawTaskListNameLimit         dynamicconfig.IntPropertyFnWithDomainFilter
	EnableClientVersionCheck        dynamicconfig.BoolPropertyFn
	DisallowQuery                   dynamicconfig.BoolPropertyFnWithDomainFilter
	ShutdownDrainDuration           dynamicconfig.DurationPropertyFn

	// Persistence settings
	HistoryMgrNumConns dynamicconfig.IntPropertyFn

	// security protection settings
	EnableAdminProtection         dynamicconfig.BoolPropertyFn
	AdminOperationToken           dynamicconfig.StringPropertyFn
	DisableListVisibilityByFilter dynamicconfig.BoolPropertyFnWithDomainFilter

	// size limit system protection
	BlobSizeLimitError dynamicconfig.IntPropertyFnWithDomainFilter
	BlobSizeLimitWarn  dynamicconfig.IntPropertyFnWithDomainFilter

	ThrottledLogRPS dynamicconfig.IntPropertyFn

	// Domain specific config
	EnableDomainNotActiveAutoForwarding         dynamicconfig.BoolPropertyFnWithDomainFilter
	EnableGracefulFailover                      dynamicconfig.BoolPropertyFn
	DomainFailoverRefreshInterval               dynamicconfig.DurationPropertyFn
	DomainFailoverRefreshTimerJitterCoefficient dynamicconfig.FloatPropertyFn

	// ValidSearchAttributes is legal indexed keys that can be used in list APIs
	ValidSearchAttributes             dynamicconfig.MapPropertyFn
	SearchAttributesNumberOfKeysLimit dynamicconfig.IntPropertyFnWithDomainFilter
	SearchAttributesSizeOfValueLimit  dynamicconfig.IntPropertyFnWithDomainFilter
	SearchAttributesTotalSizeLimit    dynamicconfig.IntPropertyFnWithDomainFilter

	// VisibilityArchival system protection
	VisibilityArchivalQueryMaxPageSize dynamicconfig.IntPropertyFn

	SendRawWorkflowHistory dynamicconfig.BoolPropertyFnWithDomainFilter
	// contains filtered or unexported fields
}

Config represents configuration for cadence-frontend service

func NewConfig added in v0.3.0

func NewConfig(dc *dynamicconfig.Collection, numHistoryShards int, enableReadFromES bool, sendRawWorkflowHistory bool) *Config

NewConfig returns new service config with default values

type DCRedirectionHandlerImpl added in v0.5.2

type DCRedirectionHandlerImpl struct {
	resource.Resource
	// contains filtered or unexported fields
}

DCRedirectionHandlerImpl is simple wrapper over frontend service, doing redirection based on policy

func NewDCRedirectionHandler added in v0.5.2

func NewDCRedirectionHandler(
	wfHandler Handler,
	resource resource.Resource,
	config *Config,
	policy config.DCRedirectionPolicy,
) *DCRedirectionHandlerImpl

NewDCRedirectionHandler creates a thrift handler for the cadence service, frontend

func (*DCRedirectionHandlerImpl) CountWorkflowExecutions added in v0.5.8

func (handler *DCRedirectionHandlerImpl) CountWorkflowExecutions(
	ctx context.Context,
	request *types.CountWorkflowExecutionsRequest,
) (resp *types.CountWorkflowExecutionsResponse, retError error)

CountWorkflowExecutions API call

func (*DCRedirectionHandlerImpl) DeprecateDomain added in v0.5.2

func (handler *DCRedirectionHandlerImpl) DeprecateDomain(
	ctx context.Context,
	request *types.DeprecateDomainRequest,
) (retError error)

DeprecateDomain API call

func (*DCRedirectionHandlerImpl) DescribeDomain added in v0.5.2

func (handler *DCRedirectionHandlerImpl) DescribeDomain(
	ctx context.Context,
	request *types.DescribeDomainRequest,
) (resp *types.DescribeDomainResponse, retError error)

DescribeDomain API call

func (*DCRedirectionHandlerImpl) DescribeTaskList added in v0.5.2

func (handler *DCRedirectionHandlerImpl) DescribeTaskList(
	ctx context.Context,
	request *types.DescribeTaskListRequest,
) (resp *types.DescribeTaskListResponse, retError error)

DescribeTaskList API call

func (*DCRedirectionHandlerImpl) DescribeWorkflowExecution added in v0.5.2

func (handler *DCRedirectionHandlerImpl) DescribeWorkflowExecution(
	ctx context.Context,
	request *types.DescribeWorkflowExecutionRequest,
) (resp *types.DescribeWorkflowExecutionResponse, retError error)

DescribeWorkflowExecution API call

func (*DCRedirectionHandlerImpl) GetClusterInfo added in v0.11.0

func (handler *DCRedirectionHandlerImpl) GetClusterInfo(
	ctx context.Context,
) (*types.ClusterInfo, error)

GetClusterInfo API call

func (*DCRedirectionHandlerImpl) GetSearchAttributes added in v0.5.9

func (handler *DCRedirectionHandlerImpl) GetSearchAttributes(
	ctx context.Context,
) (resp *types.GetSearchAttributesResponse, retError error)

GetSearchAttributes API call

func (*DCRedirectionHandlerImpl) GetWorkflowExecutionHistory added in v0.5.2

func (handler *DCRedirectionHandlerImpl) GetWorkflowExecutionHistory(
	ctx context.Context,
	request *types.GetWorkflowExecutionHistoryRequest,
) (resp *types.GetWorkflowExecutionHistoryResponse, retError error)

GetWorkflowExecutionHistory API call

func (*DCRedirectionHandlerImpl) Health added in v0.5.8

Health is for health check

func (*DCRedirectionHandlerImpl) ListArchivedWorkflowExecutions added in v0.9.0

func (handler *DCRedirectionHandlerImpl) ListArchivedWorkflowExecutions(
	ctx context.Context,
	request *types.ListArchivedWorkflowExecutionsRequest,
) (resp *types.ListArchivedWorkflowExecutionsResponse, retError error)

ListArchivedWorkflowExecutions API call

func (*DCRedirectionHandlerImpl) ListClosedWorkflowExecutions added in v0.5.2

func (handler *DCRedirectionHandlerImpl) ListClosedWorkflowExecutions(
	ctx context.Context,
	request *types.ListClosedWorkflowExecutionsRequest,
) (resp *types.ListClosedWorkflowExecutionsResponse, retError error)

ListClosedWorkflowExecutions API call

func (*DCRedirectionHandlerImpl) ListDomains added in v0.5.2

func (handler *DCRedirectionHandlerImpl) ListDomains(
	ctx context.Context,
	request *types.ListDomainsRequest,
) (resp *types.ListDomainsResponse, retError error)

ListDomains API call

func (*DCRedirectionHandlerImpl) ListOpenWorkflowExecutions added in v0.5.2

func (handler *DCRedirectionHandlerImpl) ListOpenWorkflowExecutions(
	ctx context.Context,
	request *types.ListOpenWorkflowExecutionsRequest,
) (resp *types.ListOpenWorkflowExecutionsResponse, retError error)

ListOpenWorkflowExecutions API call

func (*DCRedirectionHandlerImpl) ListTaskListPartitions added in v0.11.0

func (handler *DCRedirectionHandlerImpl) ListTaskListPartitions(
	ctx context.Context,
	request *types.ListTaskListPartitionsRequest,
) (resp *types.ListTaskListPartitionsResponse, retError error)

ListTaskListPartitions API call

func (*DCRedirectionHandlerImpl) ListWorkflowExecutions added in v0.5.7

func (handler *DCRedirectionHandlerImpl) ListWorkflowExecutions(
	ctx context.Context,
	request *types.ListWorkflowExecutionsRequest,
) (resp *types.ListWorkflowExecutionsResponse, retError error)

ListWorkflowExecutions API call

func (*DCRedirectionHandlerImpl) PollForActivityTask added in v0.5.2

func (handler *DCRedirectionHandlerImpl) PollForActivityTask(
	ctx context.Context,
	request *types.PollForActivityTaskRequest,
) (resp *types.PollForActivityTaskResponse, retError error)

PollForActivityTask API call

func (*DCRedirectionHandlerImpl) PollForDecisionTask added in v0.5.2

func (handler *DCRedirectionHandlerImpl) PollForDecisionTask(
	ctx context.Context,
	request *types.PollForDecisionTaskRequest,
) (resp *types.PollForDecisionTaskResponse, retError error)

PollForDecisionTask API call

func (*DCRedirectionHandlerImpl) QueryWorkflow added in v0.5.2

func (handler *DCRedirectionHandlerImpl) QueryWorkflow(
	ctx context.Context,
	request *types.QueryWorkflowRequest,
) (resp *types.QueryWorkflowResponse, retError error)

QueryWorkflow API call

func (*DCRedirectionHandlerImpl) RecordActivityTaskHeartbeat added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RecordActivityTaskHeartbeat(
	ctx context.Context,
	request *types.RecordActivityTaskHeartbeatRequest,
) (resp *types.RecordActivityTaskHeartbeatResponse, retError error)

RecordActivityTaskHeartbeat API call

func (*DCRedirectionHandlerImpl) RecordActivityTaskHeartbeatByID added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RecordActivityTaskHeartbeatByID(
	ctx context.Context,
	request *types.RecordActivityTaskHeartbeatByIDRequest,
) (resp *types.RecordActivityTaskHeartbeatResponse, retError error)

RecordActivityTaskHeartbeatByID API call

func (*DCRedirectionHandlerImpl) RegisterDomain added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RegisterDomain(
	ctx context.Context,
	request *types.RegisterDomainRequest,
) (retError error)

RegisterDomain API call

func (*DCRedirectionHandlerImpl) RequestCancelWorkflowExecution added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RequestCancelWorkflowExecution(
	ctx context.Context,
	request *types.RequestCancelWorkflowExecutionRequest,
) (retError error)

RequestCancelWorkflowExecution API call

func (*DCRedirectionHandlerImpl) ResetStickyTaskList added in v0.5.2

func (handler *DCRedirectionHandlerImpl) ResetStickyTaskList(
	ctx context.Context,
	request *types.ResetStickyTaskListRequest,
) (resp *types.ResetStickyTaskListResponse, retError error)

ResetStickyTaskList API call

func (*DCRedirectionHandlerImpl) ResetWorkflowExecution added in v0.5.2

func (handler *DCRedirectionHandlerImpl) ResetWorkflowExecution(
	ctx context.Context,
	request *types.ResetWorkflowExecutionRequest,
) (resp *types.ResetWorkflowExecutionResponse, retError error)

ResetWorkflowExecution API call

func (*DCRedirectionHandlerImpl) RespondActivityTaskCanceled added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondActivityTaskCanceled(
	ctx context.Context,
	request *types.RespondActivityTaskCanceledRequest,
) (retError error)

RespondActivityTaskCanceled API call

func (*DCRedirectionHandlerImpl) RespondActivityTaskCanceledByID added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondActivityTaskCanceledByID(
	ctx context.Context,
	request *types.RespondActivityTaskCanceledByIDRequest,
) (retError error)

RespondActivityTaskCanceledByID API call

func (*DCRedirectionHandlerImpl) RespondActivityTaskCompleted added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondActivityTaskCompleted(
	ctx context.Context,
	request *types.RespondActivityTaskCompletedRequest,
) (retError error)

RespondActivityTaskCompleted API call

func (*DCRedirectionHandlerImpl) RespondActivityTaskCompletedByID added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondActivityTaskCompletedByID(
	ctx context.Context,
	request *types.RespondActivityTaskCompletedByIDRequest,
) (retError error)

RespondActivityTaskCompletedByID API call

func (*DCRedirectionHandlerImpl) RespondActivityTaskFailed added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondActivityTaskFailed(
	ctx context.Context,
	request *types.RespondActivityTaskFailedRequest,
) (retError error)

RespondActivityTaskFailed API call

func (*DCRedirectionHandlerImpl) RespondActivityTaskFailedByID added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondActivityTaskFailedByID(
	ctx context.Context,
	request *types.RespondActivityTaskFailedByIDRequest,
) (retError error)

RespondActivityTaskFailedByID API call

func (*DCRedirectionHandlerImpl) RespondDecisionTaskCompleted added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondDecisionTaskCompleted(
	ctx context.Context,
	request *types.RespondDecisionTaskCompletedRequest,
) (resp *types.RespondDecisionTaskCompletedResponse, retError error)

RespondDecisionTaskCompleted API call

func (*DCRedirectionHandlerImpl) RespondDecisionTaskFailed added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondDecisionTaskFailed(
	ctx context.Context,
	request *types.RespondDecisionTaskFailedRequest,
) (retError error)

RespondDecisionTaskFailed API call

func (*DCRedirectionHandlerImpl) RespondQueryTaskCompleted added in v0.5.2

func (handler *DCRedirectionHandlerImpl) RespondQueryTaskCompleted(
	ctx context.Context,
	request *types.RespondQueryTaskCompletedRequest,
) (retError error)

RespondQueryTaskCompleted API call

func (*DCRedirectionHandlerImpl) ScanWorkflowExecutions added in v0.5.8

func (handler *DCRedirectionHandlerImpl) ScanWorkflowExecutions(
	ctx context.Context,
	request *types.ListWorkflowExecutionsRequest,
) (resp *types.ListWorkflowExecutionsResponse, retError error)

ScanWorkflowExecutions API call

func (*DCRedirectionHandlerImpl) SignalWithStartWorkflowExecution added in v0.5.2

func (handler *DCRedirectionHandlerImpl) SignalWithStartWorkflowExecution(
	ctx context.Context,
	request *types.SignalWithStartWorkflowExecutionRequest,
) (resp *types.StartWorkflowExecutionResponse, retError error)

SignalWithStartWorkflowExecution API call

func (*DCRedirectionHandlerImpl) SignalWorkflowExecution added in v0.5.2

func (handler *DCRedirectionHandlerImpl) SignalWorkflowExecution(
	ctx context.Context,
	request *types.SignalWorkflowExecutionRequest,
) (retError error)

SignalWorkflowExecution API call

func (*DCRedirectionHandlerImpl) StartWorkflowExecution added in v0.5.2

func (handler *DCRedirectionHandlerImpl) StartWorkflowExecution(
	ctx context.Context,
	request *types.StartWorkflowExecutionRequest,
) (resp *types.StartWorkflowExecutionResponse, retError error)

StartWorkflowExecution API call

func (*DCRedirectionHandlerImpl) TerminateWorkflowExecution added in v0.5.2

func (handler *DCRedirectionHandlerImpl) TerminateWorkflowExecution(
	ctx context.Context,
	request *types.TerminateWorkflowExecutionRequest,
) (retError error)

TerminateWorkflowExecution API call

func (*DCRedirectionHandlerImpl) UpdateDomain added in v0.5.2

func (handler *DCRedirectionHandlerImpl) UpdateDomain(
	ctx context.Context,
	request *types.UpdateDomainRequest,
) (resp *types.UpdateDomainResponse, retError error)

UpdateDomain API call

type DCRedirectionPolicy added in v0.5.2

type DCRedirectionPolicy interface {
	WithDomainIDRedirect(ctx context.Context, domainID string, apiName string, call func(string) error) error
	WithDomainNameRedirect(ctx context.Context, domainName string, apiName string, call func(string) error) error
}

DCRedirectionPolicy is a DC redirection policy interface

func RedirectionPolicyGenerator added in v0.5.2

func RedirectionPolicyGenerator(clusterMetadata cluster.Metadata, config *Config,
	domainCache cache.DomainCache, policy config.DCRedirectionPolicy) DCRedirectionPolicy

RedirectionPolicyGenerator generate corresponding redirection policy

type Handler added in v0.13.0

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

Handler is interface wrapping frontend handler

type HealthStatus added in v0.12.0

type HealthStatus int32

HealthStatus is an enum that refers to the rpc handler health status

const (
	// HealthStatusOK is used when this node is healthy and rpc requests are allowed
	HealthStatusOK HealthStatus = iota + 1
	// HealthStatusWarmingUp is used when the rpc handler is warming up
	HealthStatusWarmingUp
	// HealthStatusShuttingDown is used when the rpc handler is shutting down
	HealthStatusShuttingDown
)

func (HealthStatus) String added in v0.12.0

func (hs HealthStatus) String() string

type MockAdminHandler added in v0.17.0

type MockAdminHandler struct {
	// contains filtered or unexported fields
}

MockAdminHandler is a mock of AdminHandler interface

func NewMockAdminHandler added in v0.17.0

func NewMockAdminHandler(ctrl *gomock.Controller) *MockAdminHandler

NewMockAdminHandler creates a new mock instance

func (*MockAdminHandler) AddSearchAttribute added in v0.17.0

func (m *MockAdminHandler) AddSearchAttribute(arg0 context.Context, arg1 *types.AddSearchAttributeRequest) error

AddSearchAttribute mocks base method

func (*MockAdminHandler) CloseShard added in v0.17.0

func (m *MockAdminHandler) CloseShard(arg0 context.Context, arg1 *types.CloseShardRequest) error

CloseShard mocks base method

func (*MockAdminHandler) DescribeCluster added in v0.17.0

func (m *MockAdminHandler) DescribeCluster(arg0 context.Context) (*types.DescribeClusterResponse, error)

DescribeCluster mocks base method

func (*MockAdminHandler) DescribeHistoryHost added in v0.17.0

DescribeHistoryHost mocks base method

func (*MockAdminHandler) DescribeQueue added in v0.17.0

DescribeQueue mocks base method

func (*MockAdminHandler) DescribeWorkflowExecution added in v0.17.0

DescribeWorkflowExecution mocks base method

func (*MockAdminHandler) EXPECT added in v0.17.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAdminHandler) GetDLQReplicationMessages added in v0.17.0

GetDLQReplicationMessages mocks base method

func (*MockAdminHandler) GetDomainReplicationMessages added in v0.17.0

GetDomainReplicationMessages mocks base method

func (*MockAdminHandler) GetReplicationMessages added in v0.17.0

GetReplicationMessages mocks base method

func (*MockAdminHandler) GetWorkflowExecutionRawHistoryV2 added in v0.17.0

GetWorkflowExecutionRawHistoryV2 mocks base method

func (*MockAdminHandler) MergeDLQMessages added in v0.17.0

MergeDLQMessages mocks base method

func (*MockAdminHandler) PurgeDLQMessages added in v0.17.0

func (m *MockAdminHandler) PurgeDLQMessages(arg0 context.Context, arg1 *types.PurgeDLQMessagesRequest) error

PurgeDLQMessages mocks base method

func (*MockAdminHandler) ReadDLQMessages added in v0.17.0

ReadDLQMessages mocks base method

func (*MockAdminHandler) ReapplyEvents added in v0.17.0

func (m *MockAdminHandler) ReapplyEvents(arg0 context.Context, arg1 *types.ReapplyEventsRequest) error

ReapplyEvents mocks base method

func (*MockAdminHandler) RefreshWorkflowTasks added in v0.17.0

func (m *MockAdminHandler) RefreshWorkflowTasks(arg0 context.Context, arg1 *types.RefreshWorkflowTasksRequest) error

RefreshWorkflowTasks mocks base method

func (*MockAdminHandler) RemoveTask added in v0.17.0

func (m *MockAdminHandler) RemoveTask(arg0 context.Context, arg1 *types.RemoveTaskRequest) error

RemoveTask mocks base method

func (*MockAdminHandler) ResendReplicationTasks added in v0.17.0

func (m *MockAdminHandler) ResendReplicationTasks(arg0 context.Context, arg1 *types.ResendReplicationTasksRequest) error

ResendReplicationTasks mocks base method

func (*MockAdminHandler) ResetQueue added in v0.17.0

func (m *MockAdminHandler) ResetQueue(arg0 context.Context, arg1 *types.ResetQueueRequest) error

ResetQueue mocks base method

type MockAdminHandlerMockRecorder added in v0.17.0

type MockAdminHandlerMockRecorder struct {
	// contains filtered or unexported fields
}

MockAdminHandlerMockRecorder is the mock recorder for MockAdminHandler

func (*MockAdminHandlerMockRecorder) AddSearchAttribute added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) AddSearchAttribute(arg0, arg1 interface{}) *gomock.Call

AddSearchAttribute indicates an expected call of AddSearchAttribute

func (*MockAdminHandlerMockRecorder) CloseShard added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) CloseShard(arg0, arg1 interface{}) *gomock.Call

CloseShard indicates an expected call of CloseShard

func (*MockAdminHandlerMockRecorder) DescribeCluster added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) DescribeCluster(arg0 interface{}) *gomock.Call

DescribeCluster indicates an expected call of DescribeCluster

func (*MockAdminHandlerMockRecorder) DescribeHistoryHost added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) DescribeHistoryHost(arg0, arg1 interface{}) *gomock.Call

DescribeHistoryHost indicates an expected call of DescribeHistoryHost

func (*MockAdminHandlerMockRecorder) DescribeQueue added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) DescribeQueue(arg0, arg1 interface{}) *gomock.Call

DescribeQueue indicates an expected call of DescribeQueue

func (*MockAdminHandlerMockRecorder) DescribeWorkflowExecution added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) DescribeWorkflowExecution(arg0, arg1 interface{}) *gomock.Call

DescribeWorkflowExecution indicates an expected call of DescribeWorkflowExecution

func (*MockAdminHandlerMockRecorder) GetDLQReplicationMessages added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) GetDLQReplicationMessages(arg0, arg1 interface{}) *gomock.Call

GetDLQReplicationMessages indicates an expected call of GetDLQReplicationMessages

func (*MockAdminHandlerMockRecorder) GetDomainReplicationMessages added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) GetDomainReplicationMessages(arg0, arg1 interface{}) *gomock.Call

GetDomainReplicationMessages indicates an expected call of GetDomainReplicationMessages

func (*MockAdminHandlerMockRecorder) GetReplicationMessages added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) GetReplicationMessages(arg0, arg1 interface{}) *gomock.Call

GetReplicationMessages indicates an expected call of GetReplicationMessages

func (*MockAdminHandlerMockRecorder) GetWorkflowExecutionRawHistoryV2 added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) GetWorkflowExecutionRawHistoryV2(arg0, arg1 interface{}) *gomock.Call

GetWorkflowExecutionRawHistoryV2 indicates an expected call of GetWorkflowExecutionRawHistoryV2

func (*MockAdminHandlerMockRecorder) MergeDLQMessages added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) MergeDLQMessages(arg0, arg1 interface{}) *gomock.Call

MergeDLQMessages indicates an expected call of MergeDLQMessages

func (*MockAdminHandlerMockRecorder) PurgeDLQMessages added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) PurgeDLQMessages(arg0, arg1 interface{}) *gomock.Call

PurgeDLQMessages indicates an expected call of PurgeDLQMessages

func (*MockAdminHandlerMockRecorder) ReadDLQMessages added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) ReadDLQMessages(arg0, arg1 interface{}) *gomock.Call

ReadDLQMessages indicates an expected call of ReadDLQMessages

func (*MockAdminHandlerMockRecorder) ReapplyEvents added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) ReapplyEvents(arg0, arg1 interface{}) *gomock.Call

ReapplyEvents indicates an expected call of ReapplyEvents

func (*MockAdminHandlerMockRecorder) RefreshWorkflowTasks added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) RefreshWorkflowTasks(arg0, arg1 interface{}) *gomock.Call

RefreshWorkflowTasks indicates an expected call of RefreshWorkflowTasks

func (*MockAdminHandlerMockRecorder) RemoveTask added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) RemoveTask(arg0, arg1 interface{}) *gomock.Call

RemoveTask indicates an expected call of RemoveTask

func (*MockAdminHandlerMockRecorder) ResendReplicationTasks added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) ResendReplicationTasks(arg0, arg1 interface{}) *gomock.Call

ResendReplicationTasks indicates an expected call of ResendReplicationTasks

func (*MockAdminHandlerMockRecorder) ResetQueue added in v0.17.0

func (mr *MockAdminHandlerMockRecorder) ResetQueue(arg0, arg1 interface{}) *gomock.Call

ResetQueue indicates an expected call of ResetQueue

type MockDCRedirectionPolicy added in v0.5.9

type MockDCRedirectionPolicy struct {
	mock.Mock
}

MockDCRedirectionPolicy is an autogenerated mock type for the DCRedirectionPolicy type

func (*MockDCRedirectionPolicy) WithDomainIDRedirect added in v0.5.9

func (_m *MockDCRedirectionPolicy) WithDomainIDRedirect(ctx context.Context, domainID string, apiName string, call func(string) error) error

WithDomainIDRedirect provides a mock function with given fields: domainID, apiName, call

func (*MockDCRedirectionPolicy) WithDomainNameRedirect added in v0.5.9

func (_m *MockDCRedirectionPolicy) WithDomainNameRedirect(ctx context.Context, domainName string, apiName string, call func(string) error) error

WithDomainNameRedirect provides a mock function with given fields: domainName, apiName, call

type MockHandler added in v0.13.0

type MockHandler struct {
	// contains filtered or unexported fields
}

MockHandler is a mock of Handler interface

func NewMockHandler added in v0.13.0

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance

func (*MockHandler) CountWorkflowExecutions added in v0.13.0

CountWorkflowExecutions mocks base method

func (*MockHandler) DeprecateDomain added in v0.13.0

func (m *MockHandler) DeprecateDomain(arg0 context.Context, arg1 *types.DeprecateDomainRequest) error

DeprecateDomain mocks base method

func (*MockHandler) DescribeDomain added in v0.13.0

DescribeDomain mocks base method

func (*MockHandler) DescribeTaskList added in v0.13.0

DescribeTaskList mocks base method

func (*MockHandler) DescribeWorkflowExecution added in v0.13.0

DescribeWorkflowExecution mocks base method

func (*MockHandler) EXPECT added in v0.13.0

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockHandler) GetClusterInfo added in v0.13.0

func (m *MockHandler) GetClusterInfo(arg0 context.Context) (*types.ClusterInfo, error)

GetClusterInfo mocks base method

func (*MockHandler) GetSearchAttributes added in v0.13.0

func (m *MockHandler) GetSearchAttributes(arg0 context.Context) (*types.GetSearchAttributesResponse, error)

GetSearchAttributes mocks base method

func (*MockHandler) GetWorkflowExecutionHistory added in v0.13.0

GetWorkflowExecutionHistory mocks base method

func (*MockHandler) Health added in v0.13.0

func (m *MockHandler) Health(arg0 context.Context) (*types.HealthStatus, error)

Health mocks base method

func (*MockHandler) ListArchivedWorkflowExecutions added in v0.13.0

ListArchivedWorkflowExecutions mocks base method

func (*MockHandler) ListClosedWorkflowExecutions added in v0.13.0

ListClosedWorkflowExecutions mocks base method

func (*MockHandler) ListDomains added in v0.13.0

ListDomains mocks base method

func (*MockHandler) ListOpenWorkflowExecutions added in v0.13.0

ListOpenWorkflowExecutions mocks base method

func (*MockHandler) ListTaskListPartitions added in v0.13.0

ListTaskListPartitions mocks base method

func (*MockHandler) ListWorkflowExecutions added in v0.13.0

ListWorkflowExecutions mocks base method

func (*MockHandler) PollForActivityTask added in v0.13.0

PollForActivityTask mocks base method

func (*MockHandler) PollForDecisionTask added in v0.13.0

PollForDecisionTask mocks base method

func (*MockHandler) QueryWorkflow added in v0.13.0

QueryWorkflow mocks base method

func (*MockHandler) RecordActivityTaskHeartbeat added in v0.13.0

RecordActivityTaskHeartbeat mocks base method

func (*MockHandler) RecordActivityTaskHeartbeatByID added in v0.13.0

RecordActivityTaskHeartbeatByID mocks base method

func (*MockHandler) RegisterDomain added in v0.13.0

func (m *MockHandler) RegisterDomain(arg0 context.Context, arg1 *types.RegisterDomainRequest) error

RegisterDomain mocks base method

func (*MockHandler) RequestCancelWorkflowExecution added in v0.13.0

func (m *MockHandler) RequestCancelWorkflowExecution(arg0 context.Context, arg1 *types.RequestCancelWorkflowExecutionRequest) error

RequestCancelWorkflowExecution mocks base method

func (*MockHandler) ResetStickyTaskList added in v0.13.0

ResetStickyTaskList mocks base method

func (*MockHandler) ResetWorkflowExecution added in v0.13.0

ResetWorkflowExecution mocks base method

func (*MockHandler) RespondActivityTaskCanceled added in v0.13.0

func (m *MockHandler) RespondActivityTaskCanceled(arg0 context.Context, arg1 *types.RespondActivityTaskCanceledRequest) error

RespondActivityTaskCanceled mocks base method

func (*MockHandler) RespondActivityTaskCanceledByID added in v0.13.0

func (m *MockHandler) RespondActivityTaskCanceledByID(arg0 context.Context, arg1 *types.RespondActivityTaskCanceledByIDRequest) error

RespondActivityTaskCanceledByID mocks base method

func (*MockHandler) RespondActivityTaskCompleted added in v0.13.0

func (m *MockHandler) RespondActivityTaskCompleted(arg0 context.Context, arg1 *types.RespondActivityTaskCompletedRequest) error

RespondActivityTaskCompleted mocks base method

func (*MockHandler) RespondActivityTaskCompletedByID added in v0.13.0

func (m *MockHandler) RespondActivityTaskCompletedByID(arg0 context.Context, arg1 *types.RespondActivityTaskCompletedByIDRequest) error

RespondActivityTaskCompletedByID mocks base method

func (*MockHandler) RespondActivityTaskFailed added in v0.13.0

func (m *MockHandler) RespondActivityTaskFailed(arg0 context.Context, arg1 *types.RespondActivityTaskFailedRequest) error

RespondActivityTaskFailed mocks base method

func (*MockHandler) RespondActivityTaskFailedByID added in v0.13.0

func (m *MockHandler) RespondActivityTaskFailedByID(arg0 context.Context, arg1 *types.RespondActivityTaskFailedByIDRequest) error

RespondActivityTaskFailedByID mocks base method

func (*MockHandler) RespondDecisionTaskCompleted added in v0.13.0

RespondDecisionTaskCompleted mocks base method

func (*MockHandler) RespondDecisionTaskFailed added in v0.13.0

func (m *MockHandler) RespondDecisionTaskFailed(arg0 context.Context, arg1 *types.RespondDecisionTaskFailedRequest) error

RespondDecisionTaskFailed mocks base method

func (*MockHandler) RespondQueryTaskCompleted added in v0.13.0

func (m *MockHandler) RespondQueryTaskCompleted(arg0 context.Context, arg1 *types.RespondQueryTaskCompletedRequest) error

RespondQueryTaskCompleted mocks base method

func (*MockHandler) ScanWorkflowExecutions added in v0.13.0

ScanWorkflowExecutions mocks base method

func (*MockHandler) SignalWithStartWorkflowExecution added in v0.13.0

SignalWithStartWorkflowExecution mocks base method

func (*MockHandler) SignalWorkflowExecution added in v0.13.0

func (m *MockHandler) SignalWorkflowExecution(arg0 context.Context, arg1 *types.SignalWorkflowExecutionRequest) error

SignalWorkflowExecution mocks base method

func (*MockHandler) StartWorkflowExecution added in v0.13.0

StartWorkflowExecution mocks base method

func (*MockHandler) TerminateWorkflowExecution added in v0.13.0

func (m *MockHandler) TerminateWorkflowExecution(arg0 context.Context, arg1 *types.TerminateWorkflowExecutionRequest) error

TerminateWorkflowExecution mocks base method

func (*MockHandler) UpdateDomain added in v0.13.0

UpdateDomain mocks base method

type MockHandlerMockRecorder added in v0.13.0

type MockHandlerMockRecorder struct {
	// contains filtered or unexported fields
}

MockHandlerMockRecorder is the mock recorder for MockHandler

func (*MockHandlerMockRecorder) CountWorkflowExecutions added in v0.13.0

func (mr *MockHandlerMockRecorder) CountWorkflowExecutions(arg0, arg1 interface{}) *gomock.Call

CountWorkflowExecutions indicates an expected call of CountWorkflowExecutions

func (*MockHandlerMockRecorder) DeprecateDomain added in v0.13.0

func (mr *MockHandlerMockRecorder) DeprecateDomain(arg0, arg1 interface{}) *gomock.Call

DeprecateDomain indicates an expected call of DeprecateDomain

func (*MockHandlerMockRecorder) DescribeDomain added in v0.13.0

func (mr *MockHandlerMockRecorder) DescribeDomain(arg0, arg1 interface{}) *gomock.Call

DescribeDomain indicates an expected call of DescribeDomain

func (*MockHandlerMockRecorder) DescribeTaskList added in v0.13.0

func (mr *MockHandlerMockRecorder) DescribeTaskList(arg0, arg1 interface{}) *gomock.Call

DescribeTaskList indicates an expected call of DescribeTaskList

func (*MockHandlerMockRecorder) DescribeWorkflowExecution added in v0.13.0

func (mr *MockHandlerMockRecorder) DescribeWorkflowExecution(arg0, arg1 interface{}) *gomock.Call

DescribeWorkflowExecution indicates an expected call of DescribeWorkflowExecution

func (*MockHandlerMockRecorder) GetClusterInfo added in v0.13.0

func (mr *MockHandlerMockRecorder) GetClusterInfo(arg0 interface{}) *gomock.Call

GetClusterInfo indicates an expected call of GetClusterInfo

func (*MockHandlerMockRecorder) GetSearchAttributes added in v0.13.0

func (mr *MockHandlerMockRecorder) GetSearchAttributes(arg0 interface{}) *gomock.Call

GetSearchAttributes indicates an expected call of GetSearchAttributes

func (*MockHandlerMockRecorder) GetWorkflowExecutionHistory added in v0.13.0

func (mr *MockHandlerMockRecorder) GetWorkflowExecutionHistory(arg0, arg1 interface{}) *gomock.Call

GetWorkflowExecutionHistory indicates an expected call of GetWorkflowExecutionHistory

func (*MockHandlerMockRecorder) Health added in v0.13.0

func (mr *MockHandlerMockRecorder) Health(arg0 interface{}) *gomock.Call

Health indicates an expected call of Health

func (*MockHandlerMockRecorder) ListArchivedWorkflowExecutions added in v0.13.0

func (mr *MockHandlerMockRecorder) ListArchivedWorkflowExecutions(arg0, arg1 interface{}) *gomock.Call

ListArchivedWorkflowExecutions indicates an expected call of ListArchivedWorkflowExecutions

func (*MockHandlerMockRecorder) ListClosedWorkflowExecutions added in v0.13.0

func (mr *MockHandlerMockRecorder) ListClosedWorkflowExecutions(arg0, arg1 interface{}) *gomock.Call

ListClosedWorkflowExecutions indicates an expected call of ListClosedWorkflowExecutions

func (*MockHandlerMockRecorder) ListDomains added in v0.13.0

func (mr *MockHandlerMockRecorder) ListDomains(arg0, arg1 interface{}) *gomock.Call

ListDomains indicates an expected call of ListDomains

func (*MockHandlerMockRecorder) ListOpenWorkflowExecutions added in v0.13.0

func (mr *MockHandlerMockRecorder) ListOpenWorkflowExecutions(arg0, arg1 interface{}) *gomock.Call

ListOpenWorkflowExecutions indicates an expected call of ListOpenWorkflowExecutions

func (*MockHandlerMockRecorder) ListTaskListPartitions added in v0.13.0

func (mr *MockHandlerMockRecorder) ListTaskListPartitions(arg0, arg1 interface{}) *gomock.Call

ListTaskListPartitions indicates an expected call of ListTaskListPartitions

func (*MockHandlerMockRecorder) ListWorkflowExecutions added in v0.13.0

func (mr *MockHandlerMockRecorder) ListWorkflowExecutions(arg0, arg1 interface{}) *gomock.Call

ListWorkflowExecutions indicates an expected call of ListWorkflowExecutions

func (*MockHandlerMockRecorder) PollForActivityTask added in v0.13.0

func (mr *MockHandlerMockRecorder) PollForActivityTask(arg0, arg1 interface{}) *gomock.Call

PollForActivityTask indicates an expected call of PollForActivityTask

func (*MockHandlerMockRecorder) PollForDecisionTask added in v0.13.0

func (mr *MockHandlerMockRecorder) PollForDecisionTask(arg0, arg1 interface{}) *gomock.Call

PollForDecisionTask indicates an expected call of PollForDecisionTask

func (*MockHandlerMockRecorder) QueryWorkflow added in v0.13.0

func (mr *MockHandlerMockRecorder) QueryWorkflow(arg0, arg1 interface{}) *gomock.Call

QueryWorkflow indicates an expected call of QueryWorkflow

func (*MockHandlerMockRecorder) RecordActivityTaskHeartbeat added in v0.13.0

func (mr *MockHandlerMockRecorder) RecordActivityTaskHeartbeat(arg0, arg1 interface{}) *gomock.Call

RecordActivityTaskHeartbeat indicates an expected call of RecordActivityTaskHeartbeat

func (*MockHandlerMockRecorder) RecordActivityTaskHeartbeatByID added in v0.13.0

func (mr *MockHandlerMockRecorder) RecordActivityTaskHeartbeatByID(arg0, arg1 interface{}) *gomock.Call

RecordActivityTaskHeartbeatByID indicates an expected call of RecordActivityTaskHeartbeatByID

func (*MockHandlerMockRecorder) RegisterDomain added in v0.13.0

func (mr *MockHandlerMockRecorder) RegisterDomain(arg0, arg1 interface{}) *gomock.Call

RegisterDomain indicates an expected call of RegisterDomain

func (*MockHandlerMockRecorder) RequestCancelWorkflowExecution added in v0.13.0

func (mr *MockHandlerMockRecorder) RequestCancelWorkflowExecution(arg0, arg1 interface{}) *gomock.Call

RequestCancelWorkflowExecution indicates an expected call of RequestCancelWorkflowExecution

func (*MockHandlerMockRecorder) ResetStickyTaskList added in v0.13.0

func (mr *MockHandlerMockRecorder) ResetStickyTaskList(arg0, arg1 interface{}) *gomock.Call

ResetStickyTaskList indicates an expected call of ResetStickyTaskList

func (*MockHandlerMockRecorder) ResetWorkflowExecution added in v0.13.0

func (mr *MockHandlerMockRecorder) ResetWorkflowExecution(arg0, arg1 interface{}) *gomock.Call

ResetWorkflowExecution indicates an expected call of ResetWorkflowExecution

func (*MockHandlerMockRecorder) RespondActivityTaskCanceled added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondActivityTaskCanceled(arg0, arg1 interface{}) *gomock.Call

RespondActivityTaskCanceled indicates an expected call of RespondActivityTaskCanceled

func (*MockHandlerMockRecorder) RespondActivityTaskCanceledByID added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondActivityTaskCanceledByID(arg0, arg1 interface{}) *gomock.Call

RespondActivityTaskCanceledByID indicates an expected call of RespondActivityTaskCanceledByID

func (*MockHandlerMockRecorder) RespondActivityTaskCompleted added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondActivityTaskCompleted(arg0, arg1 interface{}) *gomock.Call

RespondActivityTaskCompleted indicates an expected call of RespondActivityTaskCompleted

func (*MockHandlerMockRecorder) RespondActivityTaskCompletedByID added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondActivityTaskCompletedByID(arg0, arg1 interface{}) *gomock.Call

RespondActivityTaskCompletedByID indicates an expected call of RespondActivityTaskCompletedByID

func (*MockHandlerMockRecorder) RespondActivityTaskFailed added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondActivityTaskFailed(arg0, arg1 interface{}) *gomock.Call

RespondActivityTaskFailed indicates an expected call of RespondActivityTaskFailed

func (*MockHandlerMockRecorder) RespondActivityTaskFailedByID added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondActivityTaskFailedByID(arg0, arg1 interface{}) *gomock.Call

RespondActivityTaskFailedByID indicates an expected call of RespondActivityTaskFailedByID

func (*MockHandlerMockRecorder) RespondDecisionTaskCompleted added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondDecisionTaskCompleted(arg0, arg1 interface{}) *gomock.Call

RespondDecisionTaskCompleted indicates an expected call of RespondDecisionTaskCompleted

func (*MockHandlerMockRecorder) RespondDecisionTaskFailed added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondDecisionTaskFailed(arg0, arg1 interface{}) *gomock.Call

RespondDecisionTaskFailed indicates an expected call of RespondDecisionTaskFailed

func (*MockHandlerMockRecorder) RespondQueryTaskCompleted added in v0.13.0

func (mr *MockHandlerMockRecorder) RespondQueryTaskCompleted(arg0, arg1 interface{}) *gomock.Call

RespondQueryTaskCompleted indicates an expected call of RespondQueryTaskCompleted

func (*MockHandlerMockRecorder) ScanWorkflowExecutions added in v0.13.0

func (mr *MockHandlerMockRecorder) ScanWorkflowExecutions(arg0, arg1 interface{}) *gomock.Call

ScanWorkflowExecutions indicates an expected call of ScanWorkflowExecutions

func (*MockHandlerMockRecorder) SignalWithStartWorkflowExecution added in v0.13.0

func (mr *MockHandlerMockRecorder) SignalWithStartWorkflowExecution(arg0, arg1 interface{}) *gomock.Call

SignalWithStartWorkflowExecution indicates an expected call of SignalWithStartWorkflowExecution

func (*MockHandlerMockRecorder) SignalWorkflowExecution added in v0.13.0

func (mr *MockHandlerMockRecorder) SignalWorkflowExecution(arg0, arg1 interface{}) *gomock.Call

SignalWorkflowExecution indicates an expected call of SignalWorkflowExecution

func (*MockHandlerMockRecorder) StartWorkflowExecution added in v0.13.0

func (mr *MockHandlerMockRecorder) StartWorkflowExecution(arg0, arg1 interface{}) *gomock.Call

StartWorkflowExecution indicates an expected call of StartWorkflowExecution

func (*MockHandlerMockRecorder) TerminateWorkflowExecution added in v0.13.0

func (mr *MockHandlerMockRecorder) TerminateWorkflowExecution(arg0, arg1 interface{}) *gomock.Call

TerminateWorkflowExecution indicates an expected call of TerminateWorkflowExecution

func (*MockHandlerMockRecorder) UpdateDomain added in v0.13.0

func (mr *MockHandlerMockRecorder) UpdateDomain(arg0, arg1 interface{}) *gomock.Call

UpdateDomain indicates an expected call of UpdateDomain

type NoopRedirectionPolicy added in v0.5.2

type NoopRedirectionPolicy struct {
	// contains filtered or unexported fields
}

NoopRedirectionPolicy is DC redirection policy which does nothing

func NewNoopRedirectionPolicy added in v0.5.2

func NewNoopRedirectionPolicy(currentClusterName string) *NoopRedirectionPolicy

NewNoopRedirectionPolicy is DC redirection policy which does nothing

func (*NoopRedirectionPolicy) WithDomainIDRedirect added in v0.5.9

func (policy *NoopRedirectionPolicy) WithDomainIDRedirect(ctx context.Context, domainID string, apiName string, call func(string) error) error

WithDomainIDRedirect redirect the API call based on domain ID

func (*NoopRedirectionPolicy) WithDomainNameRedirect added in v0.5.9

func (policy *NoopRedirectionPolicy) WithDomainNameRedirect(ctx context.Context, domainName string, apiName string, call func(string) error) error

WithDomainNameRedirect redirect the API call based on domain name

type SelectedAPIsForwardingRedirectionPolicy added in v0.5.9

type SelectedAPIsForwardingRedirectionPolicy struct {
	// contains filtered or unexported fields
}

SelectedAPIsForwardingRedirectionPolicy is a DC redirection policy which (based on domain) forwards selected APIs calls to active cluster

func NewSelectedAPIsForwardingPolicy added in v0.5.9

func NewSelectedAPIsForwardingPolicy(currentClusterName string, config *Config, domainCache cache.DomainCache) *SelectedAPIsForwardingRedirectionPolicy

NewSelectedAPIsForwardingPolicy creates a forwarding policy for selected APIs based on domain

func (*SelectedAPIsForwardingRedirectionPolicy) WithDomainIDRedirect added in v0.5.9

func (policy *SelectedAPIsForwardingRedirectionPolicy) WithDomainIDRedirect(ctx context.Context, domainID string, apiName string, call func(string) error) error

WithDomainIDRedirect redirect the API call based on domain ID

func (*SelectedAPIsForwardingRedirectionPolicy) WithDomainNameRedirect added in v0.5.9

func (policy *SelectedAPIsForwardingRedirectionPolicy) WithDomainNameRedirect(ctx context.Context, domainName string, apiName string, call func(string) error) error

WithDomainNameRedirect redirect the API call based on domain name

type Service

type Service struct {
	resource.Resource
	// contains filtered or unexported fields
}

Service represents the cadence-frontend service

func (*Service) Start

func (s *Service) Start()

Start starts the service

func (*Service) Stop

func (s *Service) Stop()

Stop stops the service

type ThriftHandler added in v0.17.0

type ThriftHandler struct {
	// contains filtered or unexported fields
}

ThriftHandler wrap underlying handler and handles Thrift related type conversions

func NewThriftHandler added in v0.17.0

func NewThriftHandler(h Handler) ThriftHandler

NewThriftHandler creates Thrift handler on top of underlying handler

func (ThriftHandler) CountWorkflowExecutions added in v0.17.0

CountWorkflowExecutions forwards request to the underlying handler

func (ThriftHandler) DeprecateDomain added in v0.17.0

func (t ThriftHandler) DeprecateDomain(ctx context.Context, request *shared.DeprecateDomainRequest) error

DeprecateDomain forwards request to the underlying handler

func (ThriftHandler) DescribeDomain added in v0.17.0

DescribeDomain forwards request to the underlying handler

func (ThriftHandler) DescribeTaskList added in v0.17.0

DescribeTaskList forwards request to the underlying handler

func (ThriftHandler) DescribeWorkflowExecution added in v0.17.0

DescribeWorkflowExecution forwards request to the underlying handler

func (ThriftHandler) GetClusterInfo added in v0.17.0

func (t ThriftHandler) GetClusterInfo(ctx context.Context) (*shared.ClusterInfo, error)

GetClusterInfo forwards request to the underlying handler

func (ThriftHandler) GetSearchAttributes added in v0.17.0

func (t ThriftHandler) GetSearchAttributes(ctx context.Context) (*shared.GetSearchAttributesResponse, error)

GetSearchAttributes forwards request to the underlying handler

func (ThriftHandler) GetWorkflowExecutionHistory added in v0.17.0

GetWorkflowExecutionHistory forwards request to the underlying handler

func (ThriftHandler) Health added in v0.17.0

Health forwards request to the underlying handler

func (ThriftHandler) ListArchivedWorkflowExecutions added in v0.17.0

ListArchivedWorkflowExecutions forwards request to the underlying handler

func (ThriftHandler) ListClosedWorkflowExecutions added in v0.17.0

ListClosedWorkflowExecutions forwards request to the underlying handler

func (ThriftHandler) ListDomains added in v0.17.0

ListDomains forwards request to the underlying handler

func (ThriftHandler) ListOpenWorkflowExecutions added in v0.17.0

ListOpenWorkflowExecutions forwards request to the underlying handler

func (ThriftHandler) ListTaskListPartitions added in v0.17.0

ListTaskListPartitions forwards request to the underlying handler

func (ThriftHandler) ListWorkflowExecutions added in v0.17.0

ListWorkflowExecutions forwards request to the underlying handler

func (ThriftHandler) PollForActivityTask added in v0.17.0

PollForActivityTask forwards request to the underlying handler

func (ThriftHandler) PollForDecisionTask added in v0.17.0

PollForDecisionTask forwards request to the underlying handler

func (ThriftHandler) QueryWorkflow added in v0.17.0

QueryWorkflow forwards request to the underlying handler

func (ThriftHandler) RecordActivityTaskHeartbeat added in v0.17.0

RecordActivityTaskHeartbeat forwards request to the underlying handler

func (ThriftHandler) RecordActivityTaskHeartbeatByID added in v0.17.0

RecordActivityTaskHeartbeatByID forwards request to the underlying handler

func (ThriftHandler) RegisterDomain added in v0.17.0

func (t ThriftHandler) RegisterDomain(ctx context.Context, request *shared.RegisterDomainRequest) error

RegisterDomain forwards request to the underlying handler

func (ThriftHandler) RequestCancelWorkflowExecution added in v0.17.0

func (t ThriftHandler) RequestCancelWorkflowExecution(ctx context.Context, request *shared.RequestCancelWorkflowExecutionRequest) error

RequestCancelWorkflowExecution forwards request to the underlying handler

func (ThriftHandler) ResetStickyTaskList added in v0.17.0

ResetStickyTaskList forwards request to the underlying handler

func (ThriftHandler) ResetWorkflowExecution added in v0.17.0

ResetWorkflowExecution forwards request to the underlying handler

func (ThriftHandler) RespondActivityTaskCanceled added in v0.17.0

func (t ThriftHandler) RespondActivityTaskCanceled(ctx context.Context, request *shared.RespondActivityTaskCanceledRequest) error

RespondActivityTaskCanceled forwards request to the underlying handler

func (ThriftHandler) RespondActivityTaskCanceledByID added in v0.17.0

func (t ThriftHandler) RespondActivityTaskCanceledByID(ctx context.Context, request *shared.RespondActivityTaskCanceledByIDRequest) error

RespondActivityTaskCanceledByID forwards request to the underlying handler

func (ThriftHandler) RespondActivityTaskCompleted added in v0.17.0

func (t ThriftHandler) RespondActivityTaskCompleted(ctx context.Context, request *shared.RespondActivityTaskCompletedRequest) error

RespondActivityTaskCompleted forwards request to the underlying handler

func (ThriftHandler) RespondActivityTaskCompletedByID added in v0.17.0

func (t ThriftHandler) RespondActivityTaskCompletedByID(ctx context.Context, request *shared.RespondActivityTaskCompletedByIDRequest) error

RespondActivityTaskCompletedByID forwards request to the underlying handler

func (ThriftHandler) RespondActivityTaskFailed added in v0.17.0

func (t ThriftHandler) RespondActivityTaskFailed(ctx context.Context, request *shared.RespondActivityTaskFailedRequest) error

RespondActivityTaskFailed forwards request to the underlying handler

func (ThriftHandler) RespondActivityTaskFailedByID added in v0.17.0

func (t ThriftHandler) RespondActivityTaskFailedByID(ctx context.Context, request *shared.RespondActivityTaskFailedByIDRequest) error

RespondActivityTaskFailedByID forwards request to the underlying handler

func (ThriftHandler) RespondDecisionTaskCompleted added in v0.17.0

RespondDecisionTaskCompleted forwards request to the underlying handler

func (ThriftHandler) RespondDecisionTaskFailed added in v0.17.0

func (t ThriftHandler) RespondDecisionTaskFailed(ctx context.Context, request *shared.RespondDecisionTaskFailedRequest) error

RespondDecisionTaskFailed forwards request to the underlying handler

func (ThriftHandler) RespondQueryTaskCompleted added in v0.17.0

func (t ThriftHandler) RespondQueryTaskCompleted(ctx context.Context, request *shared.RespondQueryTaskCompletedRequest) error

RespondQueryTaskCompleted forwards request to the underlying handler

func (ThriftHandler) ScanWorkflowExecutions added in v0.17.0

ScanWorkflowExecutions forwards request to the underlying handler

func (ThriftHandler) SignalWithStartWorkflowExecution added in v0.17.0

SignalWithStartWorkflowExecution forwards request to the underlying handler

func (ThriftHandler) SignalWorkflowExecution added in v0.17.0

func (t ThriftHandler) SignalWorkflowExecution(ctx context.Context, request *shared.SignalWorkflowExecutionRequest) error

SignalWorkflowExecution forwards request to the underlying handler

func (ThriftHandler) StartWorkflowExecution added in v0.17.0

StartWorkflowExecution forwards request to the underlying handler

func (ThriftHandler) TerminateWorkflowExecution added in v0.17.0

func (t ThriftHandler) TerminateWorkflowExecution(ctx context.Context, request *shared.TerminateWorkflowExecutionRequest) error

TerminateWorkflowExecution forwards request to the underlying handler

func (ThriftHandler) UpdateDomain added in v0.17.0

UpdateDomain forwards request to the underlying handler

type WorkflowHandler

type WorkflowHandler struct {
	resource.Resource
	// contains filtered or unexported fields
}

WorkflowHandler - Thrift handler interface for workflow service

func NewWorkflowHandler

func NewWorkflowHandler(
	resource resource.Resource,
	config *Config,
	replicationMessageSink messaging.Producer,
	versionChecker client.VersionChecker,
) *WorkflowHandler

NewWorkflowHandler creates a thrift handler for the cadence service

func (*WorkflowHandler) CountWorkflowExecutions added in v0.5.8

func (wh *WorkflowHandler) CountWorkflowExecutions(
	ctx context.Context,
	countRequest *types.CountWorkflowExecutionsRequest,
) (resp *types.CountWorkflowExecutionsResponse, retError error)

CountWorkflowExecutions - count number of workflow executions in a domain

func (*WorkflowHandler) DeprecateDomain

func (wh *WorkflowHandler) DeprecateDomain(ctx context.Context, deprecateRequest *types.DeprecateDomainRequest) (retError error)

DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated it cannot be used to start new workflow executions. Existing workflow executions will continue to run on deprecated domains.

func (*WorkflowHandler) DescribeDomain

func (wh *WorkflowHandler) DescribeDomain(
	ctx context.Context,
	describeRequest *types.DescribeDomainRequest,
) (response *types.DescribeDomainResponse, retError error)

DescribeDomain returns the information and configuration for a registered domain.

func (*WorkflowHandler) DescribeTaskList added in v0.3.5

func (wh *WorkflowHandler) DescribeTaskList(
	ctx context.Context,
	request *types.DescribeTaskListRequest,
) (resp *types.DescribeTaskListResponse, retError error)

DescribeTaskList returns information about the target tasklist, right now this API returns the pollers which polled this tasklist in last few minutes. If includeTaskListStatus field is true, it will also return status of tasklist's ackManager (readLevel, ackLevel, backlogCountHint and taskIDBlock).

func (*WorkflowHandler) DescribeWorkflowExecution added in v0.3.3

func (wh *WorkflowHandler) DescribeWorkflowExecution(
	ctx context.Context,
	request *types.DescribeWorkflowExecutionRequest,
) (resp *types.DescribeWorkflowExecutionResponse, retError error)

DescribeWorkflowExecution returns information about the specified workflow execution.

func (*WorkflowHandler) GetClusterInfo added in v0.11.0

func (wh *WorkflowHandler) GetClusterInfo(
	ctx context.Context,
) (resp *types.ClusterInfo, err error)

GetClusterInfo return information about cadence deployment

func (*WorkflowHandler) GetSearchAttributes added in v0.5.9

func (wh *WorkflowHandler) GetSearchAttributes(ctx context.Context) (resp *types.GetSearchAttributesResponse, retError error)

GetSearchAttributes return valid indexed keys

func (*WorkflowHandler) GetWorkflowExecutionHistory

func (wh *WorkflowHandler) GetWorkflowExecutionHistory(
	ctx context.Context,
	getRequest *types.GetWorkflowExecutionHistoryRequest,
) (resp *types.GetWorkflowExecutionHistoryResponse, retError error)

GetWorkflowExecutionHistory - retrieves the history of workflow execution

func (*WorkflowHandler) Health added in v0.3.0

func (wh *WorkflowHandler) Health(ctx context.Context) (*types.HealthStatus, error)

Health is for health check

func (*WorkflowHandler) ListArchivedWorkflowExecutions added in v0.9.0

func (wh *WorkflowHandler) ListArchivedWorkflowExecutions(
	ctx context.Context,
	listRequest *types.ListArchivedWorkflowExecutionsRequest,
) (resp *types.ListArchivedWorkflowExecutionsResponse, retError error)

ListArchivedWorkflowExecutions - retrieves archived info for closed workflow executions in a domain

func (*WorkflowHandler) ListClosedWorkflowExecutions

func (wh *WorkflowHandler) ListClosedWorkflowExecutions(
	ctx context.Context,
	listRequest *types.ListClosedWorkflowExecutionsRequest,
) (resp *types.ListClosedWorkflowExecutionsResponse, retError error)

ListClosedWorkflowExecutions - retrieves info for closed workflow executions in a domain

func (*WorkflowHandler) ListDomains added in v0.3.14

func (wh *WorkflowHandler) ListDomains(
	ctx context.Context,
	listRequest *types.ListDomainsRequest,
) (response *types.ListDomainsResponse, retError error)

ListDomains returns the information and configuration for a registered domain.

func (*WorkflowHandler) ListOpenWorkflowExecutions

func (wh *WorkflowHandler) ListOpenWorkflowExecutions(
	ctx context.Context,
	listRequest *types.ListOpenWorkflowExecutionsRequest,
) (resp *types.ListOpenWorkflowExecutionsResponse, retError error)

ListOpenWorkflowExecutions - retrieves info for open workflow executions in a domain

func (*WorkflowHandler) ListTaskListPartitions added in v0.11.0

func (wh *WorkflowHandler) ListTaskListPartitions(
	ctx context.Context,
	request *types.ListTaskListPartitionsRequest,
) (resp *types.ListTaskListPartitionsResponse, retError error)

ListTaskListPartitions returns all the partition and host for a taskList

func (*WorkflowHandler) ListWorkflowExecutions added in v0.5.7

func (wh *WorkflowHandler) ListWorkflowExecutions(
	ctx context.Context,
	listRequest *types.ListWorkflowExecutionsRequest,
) (resp *types.ListWorkflowExecutionsResponse, retError error)

ListWorkflowExecutions - retrieves info for workflow executions in a domain

func (*WorkflowHandler) PollForActivityTask

func (wh *WorkflowHandler) PollForActivityTask(
	ctx context.Context,
	pollRequest *types.PollForActivityTaskRequest,
) (resp *types.PollForActivityTaskResponse, retError error)

PollForActivityTask - Poll for an activity task.

func (*WorkflowHandler) PollForDecisionTask

func (wh *WorkflowHandler) PollForDecisionTask(
	ctx context.Context,
	pollRequest *types.PollForDecisionTaskRequest,
) (resp *types.PollForDecisionTaskResponse, retError error)

PollForDecisionTask - Poll for a decision task.

func (*WorkflowHandler) QueryWorkflow added in v0.3.2

func (wh *WorkflowHandler) QueryWorkflow(
	ctx context.Context,
	queryRequest *types.QueryWorkflowRequest,
) (resp *types.QueryWorkflowResponse, retError error)

QueryWorkflow returns query result for a specified workflow execution

func (*WorkflowHandler) RecordActivityTaskHeartbeat

func (wh *WorkflowHandler) RecordActivityTaskHeartbeat(
	ctx context.Context,
	heartbeatRequest *types.RecordActivityTaskHeartbeatRequest,
) (resp *types.RecordActivityTaskHeartbeatResponse, retError error)

RecordActivityTaskHeartbeat - Record Activity Task Heart beat.

func (*WorkflowHandler) RecordActivityTaskHeartbeatByID added in v0.3.7

func (wh *WorkflowHandler) RecordActivityTaskHeartbeatByID(
	ctx context.Context,
	heartbeatRequest *types.RecordActivityTaskHeartbeatByIDRequest,
) (resp *types.RecordActivityTaskHeartbeatResponse, retError error)

RecordActivityTaskHeartbeatByID - Record Activity Task Heart beat.

func (*WorkflowHandler) RegisterDomain

func (wh *WorkflowHandler) RegisterDomain(ctx context.Context, registerRequest *types.RegisterDomainRequest) (retError error)

RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level entity within Cadence, used as a container for all resources like workflow executions, tasklists, etc. Domain acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one domain.

func (*WorkflowHandler) RequestCancelWorkflowExecution

func (wh *WorkflowHandler) RequestCancelWorkflowExecution(
	ctx context.Context,
	cancelRequest *types.RequestCancelWorkflowExecutionRequest,
) (retError error)

RequestCancelWorkflowExecution - requests to cancel a workflow execution

func (*WorkflowHandler) ResetStickyTaskList added in v0.3.12

func (wh *WorkflowHandler) ResetStickyTaskList(
	ctx context.Context,
	resetRequest *types.ResetStickyTaskListRequest,
) (resp *types.ResetStickyTaskListResponse, retError error)

ResetStickyTaskList reset the volatile information in mutable state of a given workflow.

func (*WorkflowHandler) ResetWorkflowExecution added in v0.5.2

func (wh *WorkflowHandler) ResetWorkflowExecution(
	ctx context.Context,
	resetRequest *types.ResetWorkflowExecutionRequest,
) (resp *types.ResetWorkflowExecutionResponse, retError error)

ResetWorkflowExecution reset an existing workflow execution to the nextFirstEventID in the history and immediately terminating the current execution instance.

func (*WorkflowHandler) RespondActivityTaskCanceled

func (wh *WorkflowHandler) RespondActivityTaskCanceled(
	ctx context.Context,
	cancelRequest *types.RespondActivityTaskCanceledRequest,
) (retError error)

RespondActivityTaskCanceled - called to cancel an activity task

func (*WorkflowHandler) RespondActivityTaskCanceledByID added in v0.3.3

func (wh *WorkflowHandler) RespondActivityTaskCanceledByID(
	ctx context.Context,
	cancelRequest *types.RespondActivityTaskCanceledByIDRequest,
) (retError error)

RespondActivityTaskCanceledByID - called to cancel an activity task

func (*WorkflowHandler) RespondActivityTaskCompleted

func (wh *WorkflowHandler) RespondActivityTaskCompleted(
	ctx context.Context,
	completeRequest *types.RespondActivityTaskCompletedRequest,
) (retError error)

RespondActivityTaskCompleted - response to an activity task

func (*WorkflowHandler) RespondActivityTaskCompletedByID added in v0.3.3

func (wh *WorkflowHandler) RespondActivityTaskCompletedByID(
	ctx context.Context,
	completeRequest *types.RespondActivityTaskCompletedByIDRequest,
) (retError error)

RespondActivityTaskCompletedByID - response to an activity task

func (*WorkflowHandler) RespondActivityTaskFailed

func (wh *WorkflowHandler) RespondActivityTaskFailed(
	ctx context.Context,
	failedRequest *types.RespondActivityTaskFailedRequest,
) (retError error)

RespondActivityTaskFailed - response to an activity task failure

func (*WorkflowHandler) RespondActivityTaskFailedByID added in v0.3.3

func (wh *WorkflowHandler) RespondActivityTaskFailedByID(
	ctx context.Context,
	failedRequest *types.RespondActivityTaskFailedByIDRequest,
) (retError error)

RespondActivityTaskFailedByID - response to an activity task failure

func (*WorkflowHandler) RespondDecisionTaskCompleted

func (wh *WorkflowHandler) RespondDecisionTaskCompleted(
	ctx context.Context,
	completeRequest *types.RespondDecisionTaskCompletedRequest,
) (resp *types.RespondDecisionTaskCompletedResponse, retError error)

RespondDecisionTaskCompleted - response to a decision task

func (*WorkflowHandler) RespondDecisionTaskFailed added in v0.3.3

func (wh *WorkflowHandler) RespondDecisionTaskFailed(
	ctx context.Context,
	failedRequest *types.RespondDecisionTaskFailedRequest,
) (retError error)

RespondDecisionTaskFailed - failed response to a decision task

func (*WorkflowHandler) RespondQueryTaskCompleted added in v0.3.2

func (wh *WorkflowHandler) RespondQueryTaskCompleted(
	ctx context.Context,
	completeRequest *types.RespondQueryTaskCompletedRequest,
) (retError error)

RespondQueryTaskCompleted - response to a query task

func (*WorkflowHandler) ScanWorkflowExecutions added in v0.5.8

func (wh *WorkflowHandler) ScanWorkflowExecutions(
	ctx context.Context,
	listRequest *types.ListWorkflowExecutionsRequest,
) (resp *types.ListWorkflowExecutionsResponse, retError error)

ScanWorkflowExecutions - retrieves info for large amount of workflow executions in a domain without order

func (*WorkflowHandler) SignalWithStartWorkflowExecution added in v0.3.11

func (wh *WorkflowHandler) SignalWithStartWorkflowExecution(
	ctx context.Context,
	signalWithStartRequest *types.SignalWithStartWorkflowExecutionRequest,
) (resp *types.StartWorkflowExecutionResponse, retError error)

SignalWithStartWorkflowExecution is used to ensure sending a signal event to a workflow execution. If workflow is running, this results in WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution. If workflow is not running or not found, this results in WorkflowExecutionStarted and WorkflowExecutionSignaled event recorded in history, and a decision task being created for the execution

func (*WorkflowHandler) SignalWorkflowExecution

func (wh *WorkflowHandler) SignalWorkflowExecution(
	ctx context.Context,
	signalRequest *types.SignalWorkflowExecutionRequest,
) (retError error)

SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution.

func (*WorkflowHandler) Start

func (wh *WorkflowHandler) Start()

Start starts the handler

func (*WorkflowHandler) StartWorkflowExecution

func (wh *WorkflowHandler) StartWorkflowExecution(
	ctx context.Context,
	startRequest *types.StartWorkflowExecutionRequest,
) (resp *types.StartWorkflowExecutionResponse, retError error)

StartWorkflowExecution - Creates a new workflow execution

func (*WorkflowHandler) Stop

func (wh *WorkflowHandler) Stop()

Stop stops the handler

func (*WorkflowHandler) TerminateWorkflowExecution

func (wh *WorkflowHandler) TerminateWorkflowExecution(
	ctx context.Context,
	terminateRequest *types.TerminateWorkflowExecutionRequest,
) (retError error)

TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event in the history and immediately terminating the execution instance.

func (*WorkflowHandler) UpdateDomain

func (wh *WorkflowHandler) UpdateDomain(
	ctx context.Context,
	updateRequest *types.UpdateDomainRequest,
) (resp *types.UpdateDomainResponse, retError error)

UpdateDomain is used to update the information and configuration for a registered domain.

func (*WorkflowHandler) UpdateHealthStatus added in v0.12.0

func (wh *WorkflowHandler) UpdateHealthStatus(status HealthStatus)

UpdateHealthStatus sets the health status for this rpc handler. This health status will be used within the rpc health check handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL