ndc

package
v1.3.2-prerelease01 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(
		remoteCluster string,
		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,
	clientBean client.Bean,
	historyReplicationFn nDCHistoryReplicationFn,
	rereplicationTimeout dynamicproperties.DurationPropertyFnWithDomainIDFilter,
	currentExecutionCheck invariant.Invariant,
	logger log.Logger,
) *HistoryResenderImpl

NewHistoryResender create a new NDCHistoryResenderImpl

func (*HistoryResenderImpl) SendSingleWorkflowHistory

func (n *HistoryResenderImpl) SendSingleWorkflowHistory(
	remoteCluster string,
	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(remoteCluster, 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(remoteCluster, domainID, workflowID, runID, startEventID, startEventVersion, endEventID, endEventVersion any) *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