ndc

package
v1.2.13-prerelease05 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package ndc is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSkipTask is the error to skip task due to absence of the workflow in the source cluster
	ErrSkipTask = errors.New("the source workflow does not exist")
)

Functions

This section is empty.

Types

type HistoryResender

type HistoryResender interface {
	// SendSingleWorkflowHistory sends multiple run IDs's history events to remote
	SendSingleWorkflowHistory(
		domainID string,
		workflowID string,
		runID string,
		startEventID *int64,
		startEventVersion *int64,
		endEventID *int64,
		endEventVersion *int64,
	) error
}

HistoryResender is the interface for resending history events to remote

type HistoryResenderImpl

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

HistoryResenderImpl is the implementation of NDCHistoryResender

func NewHistoryResender

func NewHistoryResender(
	domainCache cache.DomainCache,
	adminClient adminClient.Client,
	historyReplicationFn nDCHistoryReplicationFn,
	rereplicationTimeout dynamicconfig.DurationPropertyFnWithDomainIDFilter,
	currentExecutionCheck invariant.Invariant,
	logger log.Logger,
) *HistoryResenderImpl

NewHistoryResender create a new NDCHistoryResenderImpl

func (*HistoryResenderImpl) SendSingleWorkflowHistory

func (n *HistoryResenderImpl) SendSingleWorkflowHistory(
	domainID string,
	workflowID string,
	runID string,
	startEventID *int64,
	startEventVersion *int64,
	endEventID *int64,
	endEventVersion *int64,
) error

SendSingleWorkflowHistory sends one run IDs's history events to remote

type MockHistoryResender

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

MockHistoryResender is a mock of HistoryResender interface.

func NewMockHistoryResender

func NewMockHistoryResender(ctrl *gomock.Controller) *MockHistoryResender

NewMockHistoryResender creates a new mock instance.

func (*MockHistoryResender) EXPECT

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

func (*MockHistoryResender) SendSingleWorkflowHistory

func (m *MockHistoryResender) SendSingleWorkflowHistory(domainID, workflowID, runID string, startEventID, startEventVersion, endEventID, endEventVersion *int64) error

SendSingleWorkflowHistory mocks base method.

type MockHistoryResenderMockRecorder

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

MockHistoryResenderMockRecorder is the mock recorder for MockHistoryResender.

func (*MockHistoryResenderMockRecorder) SendSingleWorkflowHistory

func (mr *MockHistoryResenderMockRecorder) SendSingleWorkflowHistory(domainID, workflowID, runID, startEventID, startEventVersion, endEventID, endEventVersion interface{}) *gomock.Call

SendSingleWorkflowHistory indicates an expected call of SendSingleWorkflowHistory.

Jump to

Keyboard shortcuts

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