package
1.28.0-130.0
Repository: https://github.com/temporalio/temporal.git
Documentation: pkg.go.dev

# Packages

Package cache is a generated GoMock package.
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddNextStateMachineTimerTask generates a state machine timer task if the first deadline doesn't have a task scheduled yet.
CompareVersionedTransition compares two VersionedTransition structs.
No description provided by the author
FindAutoResetPoint returns the auto reset point.
No description provided by the author
GetEffectiveDeployment returns the effective deployment in the following order: 1.
GetEffectiveVersioningBehavior returns the effective versioning behavior in the following order: 1.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewCommandHandlerRegistry creates a new [CommandHandlerRegistry].
No description provided by the author
NewMapEventCache is a functional event cache mock that wraps a simple Go map.
NewMockMutableStateRebuilder creates a new mock instance.
NewMockTaskGenerator creates a new mock instance.
NewMockTaskRefresher creates a new mock instance.
NewMockTimerSequence creates a new mock instance.
NewMockTransaction creates a new mock instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RelocatableAttributesFetcherProvider provides a new instance of a RelocatableAttributesFetcher.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TerminateWorkflow will write a WorkflowExecutionTerminated event with a fresh batch ID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TrackStateMachineTimer tracks a timer task in the mutable state's StateMachineTimers slice sorted and grouped by deadline.
TransitionHistoryStalenessCheck verifies that ref namespace failover version and transition count is contained in the given transition history.
TrimStateMachineTimers returns of copy of trimmed the StateMachineTimers slice by removing any timer tasks that are associated with an HSM node that has been deleted or updated on or after the provided minVersionedTransition.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdatedTransitionHistory takes a slice of transition history and returns a new slice that includes the max state transition count for the given version.
No description provided by the author

# Constants

ErrMessageHistorySizeZero indicate that history is empty.
No description provided by the author
No description provided by the author
No description provided by the author
Mutable state is a top-level state machine in the state machines framework.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

EmptyVersionedTransition is the zero value for VersionedTransition.
ErrDuplicateRegistration is returned by a [CommandHandlerRegistry] when it detects duplicate registration.
ErrMissingActivityInfo indicates missing activity info.
ErrMissingActivityScheduledEvent indicates missing workflow activity scheduled event.
ErrMissingChildWorkflowInfo indicates missing child workflow info.
ErrMissingChildWorkflowInitiatedEvent indicates missing child workflow initiated event.
ErrMissingRequestCancelInfo indicates missing request cancel info.
ErrMissingSignalInfo indicates missing signal external.
ErrMissingSignalInitiatedEvent indicates missing workflow signal initiated event.
ErrMissingTimerInfo indicates missing timer info.
ErrMissingWorkflowCompletionEvent indicates missing workflow completion event.
ErrMissingWorkflowStartEvent indicates missing workflow start event.
ErrPinnedWorkflowCannotTransition indicates attempt to start a transition on a pinned workflow.
ErrWorkflowFinished indicates trying to mutate mutable state after workflow finished.
No description provided by the author

# Structs

CommandHandlerRegistry maintains a mapping of command type to [CommandHandler].
No description provided by the author
FailWorkflowTaskError is an error that can be returned from a [CommandHandler] to fail the current workflow task and optionally terminate the entire workflow.
MockMutableStateRebuilder is a mock of MutableStateRebuilder interface.
MockMutableStateRebuilderMockRecorder is the mock recorder for MockMutableStateRebuilder.
MockTaskGenerator is a mock of TaskGenerator interface.
MockTaskGeneratorMockRecorder is the mock recorder for MockTaskGenerator.
MockTaskRefresher is a mock of TaskRefresher interface.
MockTaskRefresherMockRecorder is the mock recorder for MockTaskRefresher.
MockTimerSequence is a mock of TimerSequence interface.
MockTimerSequenceMockRecorder is the mock recorder for MockTimerSequence.
MockTransaction is a mock of Transaction interface.
MockTransactionMockRecorder is the mock recorder for MockTransaction.
No description provided by the author
No description provided by the author
No description provided by the author
RelocatableAttributes contains workflow attributes that can be moved from the mutable state to the persistence backend.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

CommandValidator is a helper for validating workflow commands.
No description provided by the author
RelocatableAttributesFetcher is used to fetch the relocatable attributes from the mutable state.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination transaction_mock.go.

# Type aliases

No description provided by the author
CommandHandler is a function for handling a workflow command as part of processing a RespondWorkflowTaskCompleted worker request.
No description provided by the author