Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BranchStatusUnknown the BranchStatus_Unknown. description:BranchStatus_Unknown branch status. BranchStatusUnknown = iota // BranchStatusRegistered the BranchStatus_Registered. description:BranchStatus_Registered to TC. BranchStatusRegistered // BranchStatusPhaseoneDone the Phase one done. description:Branch logic is successfully done at phase one. BranchStatusPhaseoneDone // BranchStatusPhaseoneFailed the Phase one failed. description:Branch logic is failed at phase one. BranchStatusPhaseoneFailed // BranchStatusPhaseoneTimeout the Phase one timeout. description:Branch logic is NOT reported for a timeout. BranchStatusPhaseoneTimeout // BranchStatusPhasetwoCommitted the Phase two committed. description:Commit logic is successfully done at phase two. BranchStatusPhasetwoCommitted // BranchStatusPhasetwoCommitFailedRetryable the Phase two commit failed retryable. description:Commit logic is failed but retryable. BranchStatusPhasetwoCommitFailedRetryable // BranchStatusPhasetwoCommitFailedUnretryable the Phase two commit failed unretryable. // description:Commit logic is failed and NOT retryable. BranchStatusPhasetwoCommitFailedUnretryable // BranchStatusPhasetwoRollbacked The Phase two rollbacked. // description:Rollback logic is successfully done at phase two. BranchStatusPhasetwoRollbacked // BranchStatusPhasetwoRollbackFailedRetryable the Phase two rollback failed retryable. // description:Rollback logic is failed but retryable. BranchStatusPhasetwoRollbackFailedRetryable // BranchStatusPhasetwoRollbackFailedUnretryable the Phase two rollback failed unretryable. // description:Rollback logic is failed but NOT retryable. BranchStatusPhasetwoRollbackFailedUnretryable )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchStatus ¶
type BranchStatus int8
func (BranchStatus) String ¶
func (s BranchStatus) String() string
type BranchType ¶
type BranchType int8
const ( BranchTypeUnknow BranchType = -1 BranchTypeAT BranchType = 0 BranchTypeTCC BranchType = 1 BranchTypeSAGA BranchType = 2 BranchTypeXA BranchType = 3 )
Click to show internal directories.
Click to hide internal directories.