Documentation
¶
Index ¶
Constants ¶
View Source
const ( TxnTypeSaga = "saga" TxnTypeTcc = "tcc" BranchTypeCommit = "commit" BranchTypeCompensation = "compensation" BranchTypeConfirm = "confirm" BranchTypeCancel = "cancel" // TxnStatePrepared = "prepared" TxnStateCommitting = "committing" TxnStatePreCommitted = "precommitted" // notifying TxnStateCommitted = "committed" TxnStateRolling = "rolling" TxnStatePreAborted = "preaborted" // notifying TxnStateAborted = "aborted" TxnCallTypeSync = "sync" TxnCallTypeAsync = "async" RmProtocolGrpc = "grpc" RmProtocolSeparate = ";" PayloadCodecJson = "json" PayloadCodecProto = "proto" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetryStrategyConstant ¶
type SagaBranch ¶
type SagaBranch struct { BranchId int Commit SagaBranchCommit Compensation SagaBranchCompensation }
type SagaBranchCommit ¶
type SagaBranchCompensation ¶
type SagaBranchResponse ¶
type SagaNotify ¶
type SagaRequest ¶
type SagaResponse ¶
type SagaResponse struct { Gtid string State string Branches []SagaBranchResponse Msg string }
type SagaRetry ¶
type SagaRetry struct { MaxRetry int Constant *RetryStrategyConstant }
type TccBranchResponse ¶
type TccRequest ¶
type TccResponse ¶
type TccResponse struct { Gtid string State string Branches []TccBranchResponse Msg string }
Click to show internal directories.
Click to hide internal directories.