Documentation ¶
Overview ¶
Package handler is a generated GoMock package.
Index ¶
- type Engine
- type Handler
- type MockEngine
- func (m *MockEngine) AddActivityTask(hCtx *handlerContext, request *types.AddActivityTaskRequest) (bool, error)
- func (m *MockEngine) AddDecisionTask(hCtx *handlerContext, request *types.AddDecisionTaskRequest) (bool, error)
- func (m *MockEngine) CancelOutstandingPoll(hCtx *handlerContext, request *types.CancelOutstandingPollRequest) error
- func (m *MockEngine) DescribeTaskList(hCtx *handlerContext, request *types.MatchingDescribeTaskListRequest) (*types.DescribeTaskListResponse, error)
- func (m *MockEngine) EXPECT() *MockEngineMockRecorder
- func (m *MockEngine) GetTaskListsByDomain(hCtx *handlerContext, request *types.GetTaskListsByDomainRequest) (*types.GetTaskListsByDomainResponse, error)
- func (m *MockEngine) ListTaskListPartitions(hCtx *handlerContext, request *types.MatchingListTaskListPartitionsRequest) (*types.ListTaskListPartitionsResponse, error)
- func (m *MockEngine) PollForActivityTask(hCtx *handlerContext, request *types.MatchingPollForActivityTaskRequest) (*types.MatchingPollForActivityTaskResponse, error)
- func (m *MockEngine) PollForDecisionTask(hCtx *handlerContext, request *types.MatchingPollForDecisionTaskRequest) (*types.MatchingPollForDecisionTaskResponse, error)
- func (m *MockEngine) QueryWorkflow(hCtx *handlerContext, request *types.MatchingQueryWorkflowRequest) (*types.QueryWorkflowResponse, error)
- func (m *MockEngine) RespondQueryTaskCompleted(hCtx *handlerContext, request *types.MatchingRespondQueryTaskCompletedRequest) error
- func (m *MockEngine) Start()
- func (m *MockEngine) Stop()
- type MockEngineMockRecorder
- func (mr *MockEngineMockRecorder) AddActivityTask(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) AddDecisionTask(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) CancelOutstandingPoll(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) DescribeTaskList(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) GetTaskListsByDomain(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) ListTaskListPartitions(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) PollForActivityTask(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) PollForDecisionTask(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) QueryWorkflow(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) RespondQueryTaskCompleted(hCtx, request interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Start() *gomock.Call
- func (mr *MockEngineMockRecorder) Stop() *gomock.Call
- type MockHandler
- func (m *MockHandler) AddActivityTask(arg0 context.Context, arg1 *types.AddActivityTaskRequest) error
- func (m *MockHandler) AddDecisionTask(arg0 context.Context, arg1 *types.AddDecisionTaskRequest) error
- func (m *MockHandler) CancelOutstandingPoll(arg0 context.Context, arg1 *types.CancelOutstandingPollRequest) error
- func (m *MockHandler) DescribeTaskList(arg0 context.Context, arg1 *types.MatchingDescribeTaskListRequest) (*types.DescribeTaskListResponse, error)
- func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
- func (m *MockHandler) GetTaskListsByDomain(arg0 context.Context, arg1 *types.GetTaskListsByDomainRequest) (*types.GetTaskListsByDomainResponse, error)
- func (m *MockHandler) Health(arg0 context.Context) (*types.HealthStatus, error)
- func (m *MockHandler) ListTaskListPartitions(arg0 context.Context, arg1 *types.MatchingListTaskListPartitionsRequest) (*types.ListTaskListPartitionsResponse, error)
- func (m *MockHandler) PollForActivityTask(arg0 context.Context, arg1 *types.MatchingPollForActivityTaskRequest) (*types.MatchingPollForActivityTaskResponse, error)
- func (m *MockHandler) PollForDecisionTask(arg0 context.Context, arg1 *types.MatchingPollForDecisionTaskRequest) (*types.MatchingPollForDecisionTaskResponse, error)
- func (m *MockHandler) QueryWorkflow(arg0 context.Context, arg1 *types.MatchingQueryWorkflowRequest) (*types.QueryWorkflowResponse, error)
- func (m *MockHandler) RespondQueryTaskCompleted(arg0 context.Context, arg1 *types.MatchingRespondQueryTaskCompletedRequest) error
- func (m *MockHandler) Start()
- func (m *MockHandler) Stop()
- type MockHandlerMockRecorder
- func (mr *MockHandlerMockRecorder) AddActivityTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) AddDecisionTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) CancelOutstandingPoll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) DescribeTaskList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) GetTaskListsByDomain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Health(arg0 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) ListTaskListPartitions(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) PollForActivityTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) PollForDecisionTask(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) QueryWorkflow(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) RespondQueryTaskCompleted(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Start() *gomock.Call
- func (mr *MockHandlerMockRecorder) Stop() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface { common.Daemon AddDecisionTask(hCtx *handlerContext, request *types.AddDecisionTaskRequest) (syncMatch bool, err error) AddActivityTask(hCtx *handlerContext, request *types.AddActivityTaskRequest) (syncMatch bool, err error) PollForDecisionTask(hCtx *handlerContext, request *types.MatchingPollForDecisionTaskRequest) (*types.MatchingPollForDecisionTaskResponse, error) PollForActivityTask(hCtx *handlerContext, request *types.MatchingPollForActivityTaskRequest) (*types.MatchingPollForActivityTaskResponse, error) QueryWorkflow(hCtx *handlerContext, request *types.MatchingQueryWorkflowRequest) (*types.QueryWorkflowResponse, error) RespondQueryTaskCompleted(hCtx *handlerContext, request *types.MatchingRespondQueryTaskCompletedRequest) error CancelOutstandingPoll(hCtx *handlerContext, request *types.CancelOutstandingPollRequest) error DescribeTaskList(hCtx *handlerContext, request *types.MatchingDescribeTaskListRequest) (*types.DescribeTaskListResponse, error) ListTaskListPartitions(hCtx *handlerContext, request *types.MatchingListTaskListPartitionsRequest) (*types.ListTaskListPartitionsResponse, error) GetTaskListsByDomain(hCtx *handlerContext, request *types.GetTaskListsByDomainRequest) (*types.GetTaskListsByDomainResponse, error) }
Engine exposes interfaces for clients to poll for activity and decision tasks.
func NewEngine ¶
func NewEngine( taskManager persistence.TaskManager, clusterMetadata cluster.Metadata, historyService history.Client, matchingClient matching.Client, config *config.Config, logger log.Logger, metricsClient metrics.Client, domainCache cache.DomainCache, resolver membership.Resolver, partitioner partition.Partitioner, timeSource clock.TimeSource, ) Engine
NewEngine creates an instance of matching engine
type Handler ¶
type Handler interface { common.Daemon Health(context.Context) (*types.HealthStatus, error) AddActivityTask(context.Context, *types.AddActivityTaskRequest) error AddDecisionTask(context.Context, *types.AddDecisionTaskRequest) error CancelOutstandingPoll(context.Context, *types.CancelOutstandingPollRequest) error DescribeTaskList(context.Context, *types.MatchingDescribeTaskListRequest) (*types.DescribeTaskListResponse, error) ListTaskListPartitions(context.Context, *types.MatchingListTaskListPartitionsRequest) (*types.ListTaskListPartitionsResponse, error) GetTaskListsByDomain(context.Context, *types.GetTaskListsByDomainRequest) (*types.GetTaskListsByDomainResponse, error) PollForActivityTask(context.Context, *types.MatchingPollForActivityTaskRequest) (*types.MatchingPollForActivityTaskResponse, error) PollForDecisionTask(context.Context, *types.MatchingPollForDecisionTaskRequest) (*types.MatchingPollForDecisionTaskResponse, error) QueryWorkflow(context.Context, *types.MatchingQueryWorkflowRequest) (*types.QueryWorkflowResponse, error) RespondQueryTaskCompleted(context.Context, *types.MatchingRespondQueryTaskCompletedRequest) error }
Handler interface for matching service
type MockEngine ¶
type MockEngine struct {
// contains filtered or unexported fields
}
MockEngine is a mock of Engine interface.
func NewMockEngine ¶
func NewMockEngine(ctrl *gomock.Controller) *MockEngine
NewMockEngine creates a new mock instance.
func (*MockEngine) AddActivityTask ¶
func (m *MockEngine) AddActivityTask(hCtx *handlerContext, request *types.AddActivityTaskRequest) (bool, error)
AddActivityTask mocks base method.
func (*MockEngine) AddDecisionTask ¶
func (m *MockEngine) AddDecisionTask(hCtx *handlerContext, request *types.AddDecisionTaskRequest) (bool, error)
AddDecisionTask mocks base method.
func (*MockEngine) CancelOutstandingPoll ¶
func (m *MockEngine) CancelOutstandingPoll(hCtx *handlerContext, request *types.CancelOutstandingPollRequest) error
CancelOutstandingPoll mocks base method.
func (*MockEngine) DescribeTaskList ¶
func (m *MockEngine) DescribeTaskList(hCtx *handlerContext, request *types.MatchingDescribeTaskListRequest) (*types.DescribeTaskListResponse, error)
DescribeTaskList mocks base method.
func (*MockEngine) EXPECT ¶
func (m *MockEngine) EXPECT() *MockEngineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEngine) GetTaskListsByDomain ¶
func (m *MockEngine) GetTaskListsByDomain(hCtx *handlerContext, request *types.GetTaskListsByDomainRequest) (*types.GetTaskListsByDomainResponse, error)
GetTaskListsByDomain mocks base method.
func (*MockEngine) ListTaskListPartitions ¶
func (m *MockEngine) ListTaskListPartitions(hCtx *handlerContext, request *types.MatchingListTaskListPartitionsRequest) (*types.ListTaskListPartitionsResponse, error)
ListTaskListPartitions mocks base method.
func (*MockEngine) PollForActivityTask ¶
func (m *MockEngine) PollForActivityTask(hCtx *handlerContext, request *types.MatchingPollForActivityTaskRequest) (*types.MatchingPollForActivityTaskResponse, error)
PollForActivityTask mocks base method.
func (*MockEngine) PollForDecisionTask ¶
func (m *MockEngine) PollForDecisionTask(hCtx *handlerContext, request *types.MatchingPollForDecisionTaskRequest) (*types.MatchingPollForDecisionTaskResponse, error)
PollForDecisionTask mocks base method.
func (*MockEngine) QueryWorkflow ¶
func (m *MockEngine) QueryWorkflow(hCtx *handlerContext, request *types.MatchingQueryWorkflowRequest) (*types.QueryWorkflowResponse, error)
QueryWorkflow mocks base method.
func (*MockEngine) RespondQueryTaskCompleted ¶
func (m *MockEngine) RespondQueryTaskCompleted(hCtx *handlerContext, request *types.MatchingRespondQueryTaskCompletedRequest) error
RespondQueryTaskCompleted mocks base method.
type MockEngineMockRecorder ¶
type MockEngineMockRecorder struct {
// contains filtered or unexported fields
}
MockEngineMockRecorder is the mock recorder for MockEngine.
func (*MockEngineMockRecorder) AddActivityTask ¶
func (mr *MockEngineMockRecorder) AddActivityTask(hCtx, request interface{}) *gomock.Call
AddActivityTask indicates an expected call of AddActivityTask.
func (*MockEngineMockRecorder) AddDecisionTask ¶
func (mr *MockEngineMockRecorder) AddDecisionTask(hCtx, request interface{}) *gomock.Call
AddDecisionTask indicates an expected call of AddDecisionTask.
func (*MockEngineMockRecorder) CancelOutstandingPoll ¶
func (mr *MockEngineMockRecorder) CancelOutstandingPoll(hCtx, request interface{}) *gomock.Call
CancelOutstandingPoll indicates an expected call of CancelOutstandingPoll.
func (*MockEngineMockRecorder) DescribeTaskList ¶
func (mr *MockEngineMockRecorder) DescribeTaskList(hCtx, request interface{}) *gomock.Call
DescribeTaskList indicates an expected call of DescribeTaskList.
func (*MockEngineMockRecorder) GetTaskListsByDomain ¶
func (mr *MockEngineMockRecorder) GetTaskListsByDomain(hCtx, request interface{}) *gomock.Call
GetTaskListsByDomain indicates an expected call of GetTaskListsByDomain.
func (*MockEngineMockRecorder) ListTaskListPartitions ¶
func (mr *MockEngineMockRecorder) ListTaskListPartitions(hCtx, request interface{}) *gomock.Call
ListTaskListPartitions indicates an expected call of ListTaskListPartitions.
func (*MockEngineMockRecorder) PollForActivityTask ¶
func (mr *MockEngineMockRecorder) PollForActivityTask(hCtx, request interface{}) *gomock.Call
PollForActivityTask indicates an expected call of PollForActivityTask.
func (*MockEngineMockRecorder) PollForDecisionTask ¶
func (mr *MockEngineMockRecorder) PollForDecisionTask(hCtx, request interface{}) *gomock.Call
PollForDecisionTask indicates an expected call of PollForDecisionTask.
func (*MockEngineMockRecorder) QueryWorkflow ¶
func (mr *MockEngineMockRecorder) QueryWorkflow(hCtx, request interface{}) *gomock.Call
QueryWorkflow indicates an expected call of QueryWorkflow.
func (*MockEngineMockRecorder) RespondQueryTaskCompleted ¶
func (mr *MockEngineMockRecorder) RespondQueryTaskCompleted(hCtx, request interface{}) *gomock.Call
RespondQueryTaskCompleted indicates an expected call of RespondQueryTaskCompleted.
func (*MockEngineMockRecorder) Start ¶ added in v1.2.13
func (mr *MockEngineMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockEngineMockRecorder) Stop ¶
func (mr *MockEngineMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockHandler ¶
type MockHandler struct {
// contains filtered or unexported fields
}
MockHandler is a mock of Handler interface.
func NewMockHandler ¶
func NewMockHandler(ctrl *gomock.Controller) *MockHandler
NewMockHandler creates a new mock instance.
func (*MockHandler) AddActivityTask ¶
func (m *MockHandler) AddActivityTask(arg0 context.Context, arg1 *types.AddActivityTaskRequest) error
AddActivityTask mocks base method.
func (*MockHandler) AddDecisionTask ¶
func (m *MockHandler) AddDecisionTask(arg0 context.Context, arg1 *types.AddDecisionTaskRequest) error
AddDecisionTask mocks base method.
func (*MockHandler) CancelOutstandingPoll ¶
func (m *MockHandler) CancelOutstandingPoll(arg0 context.Context, arg1 *types.CancelOutstandingPollRequest) error
CancelOutstandingPoll mocks base method.
func (*MockHandler) DescribeTaskList ¶
func (m *MockHandler) DescribeTaskList(arg0 context.Context, arg1 *types.MatchingDescribeTaskListRequest) (*types.DescribeTaskListResponse, error)
DescribeTaskList mocks base method.
func (*MockHandler) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHandler) GetTaskListsByDomain ¶
func (m *MockHandler) GetTaskListsByDomain(arg0 context.Context, arg1 *types.GetTaskListsByDomainRequest) (*types.GetTaskListsByDomainResponse, error)
GetTaskListsByDomain mocks base method.
func (*MockHandler) Health ¶
func (m *MockHandler) Health(arg0 context.Context) (*types.HealthStatus, error)
Health mocks base method.
func (*MockHandler) ListTaskListPartitions ¶
func (m *MockHandler) ListTaskListPartitions(arg0 context.Context, arg1 *types.MatchingListTaskListPartitionsRequest) (*types.ListTaskListPartitionsResponse, error)
ListTaskListPartitions mocks base method.
func (*MockHandler) PollForActivityTask ¶
func (m *MockHandler) PollForActivityTask(arg0 context.Context, arg1 *types.MatchingPollForActivityTaskRequest) (*types.MatchingPollForActivityTaskResponse, error)
PollForActivityTask mocks base method.
func (*MockHandler) PollForDecisionTask ¶
func (m *MockHandler) PollForDecisionTask(arg0 context.Context, arg1 *types.MatchingPollForDecisionTaskRequest) (*types.MatchingPollForDecisionTaskResponse, error)
PollForDecisionTask mocks base method.
func (*MockHandler) QueryWorkflow ¶
func (m *MockHandler) QueryWorkflow(arg0 context.Context, arg1 *types.MatchingQueryWorkflowRequest) (*types.QueryWorkflowResponse, error)
QueryWorkflow mocks base method.
func (*MockHandler) RespondQueryTaskCompleted ¶
func (m *MockHandler) RespondQueryTaskCompleted(arg0 context.Context, arg1 *types.MatchingRespondQueryTaskCompletedRequest) error
RespondQueryTaskCompleted mocks base method.
type MockHandlerMockRecorder ¶
type MockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerMockRecorder is the mock recorder for MockHandler.
func (*MockHandlerMockRecorder) AddActivityTask ¶
func (mr *MockHandlerMockRecorder) AddActivityTask(arg0, arg1 interface{}) *gomock.Call
AddActivityTask indicates an expected call of AddActivityTask.
func (*MockHandlerMockRecorder) AddDecisionTask ¶
func (mr *MockHandlerMockRecorder) AddDecisionTask(arg0, arg1 interface{}) *gomock.Call
AddDecisionTask indicates an expected call of AddDecisionTask.
func (*MockHandlerMockRecorder) CancelOutstandingPoll ¶
func (mr *MockHandlerMockRecorder) CancelOutstandingPoll(arg0, arg1 interface{}) *gomock.Call
CancelOutstandingPoll indicates an expected call of CancelOutstandingPoll.
func (*MockHandlerMockRecorder) DescribeTaskList ¶
func (mr *MockHandlerMockRecorder) DescribeTaskList(arg0, arg1 interface{}) *gomock.Call
DescribeTaskList indicates an expected call of DescribeTaskList.
func (*MockHandlerMockRecorder) GetTaskListsByDomain ¶
func (mr *MockHandlerMockRecorder) GetTaskListsByDomain(arg0, arg1 interface{}) *gomock.Call
GetTaskListsByDomain indicates an expected call of GetTaskListsByDomain.
func (*MockHandlerMockRecorder) Health ¶
func (mr *MockHandlerMockRecorder) Health(arg0 interface{}) *gomock.Call
Health indicates an expected call of Health.
func (*MockHandlerMockRecorder) ListTaskListPartitions ¶
func (mr *MockHandlerMockRecorder) ListTaskListPartitions(arg0, arg1 interface{}) *gomock.Call
ListTaskListPartitions indicates an expected call of ListTaskListPartitions.
func (*MockHandlerMockRecorder) PollForActivityTask ¶
func (mr *MockHandlerMockRecorder) PollForActivityTask(arg0, arg1 interface{}) *gomock.Call
PollForActivityTask indicates an expected call of PollForActivityTask.
func (*MockHandlerMockRecorder) PollForDecisionTask ¶
func (mr *MockHandlerMockRecorder) PollForDecisionTask(arg0, arg1 interface{}) *gomock.Call
PollForDecisionTask indicates an expected call of PollForDecisionTask.
func (*MockHandlerMockRecorder) QueryWorkflow ¶
func (mr *MockHandlerMockRecorder) QueryWorkflow(arg0, arg1 interface{}) *gomock.Call
QueryWorkflow indicates an expected call of QueryWorkflow.
func (*MockHandlerMockRecorder) RespondQueryTaskCompleted ¶
func (mr *MockHandlerMockRecorder) RespondQueryTaskCompleted(arg0, arg1 interface{}) *gomock.Call
RespondQueryTaskCompleted indicates an expected call of RespondQueryTaskCompleted.
func (*MockHandlerMockRecorder) Start ¶
func (mr *MockHandlerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockHandlerMockRecorder) Stop ¶
func (mr *MockHandlerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.