🔥A cross-language distributed transaction manager. Support xa, tcc, saga, transactional messages. 跨语言分布式事务管理器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.1 KiB

package dtmcli
const (
// StatusPrepared status for global trans status. exists only in tran message
StatusPrepared = "prepared"
// StatusSubmitted StatusSubmitted status for global trans status.
StatusSubmitted = "submitted"
// StatusSucceed status for global trans status.
StatusSucceed = "succeed"
// StatusFailed status for global trans status.
StatusFailed = "failed"
// BranchTry branch type for TCC
BranchTry = "try"
// BranchConfirm branch type for TCC
BranchConfirm = "confirm"
// BranchCancel branch type for TCC
BranchCancel = "cancel"
// BranchAction branch type for message, SAGA, XA
BranchAction = "action"
// BranchCompensate branch type for SAGA
BranchCompensate = "compensate"
// BranchCommit branch type for XA
BranchCommit = "commit"
// BranchRollback branch type for XA
BranchRollback = "rollback"
// ResultSuccess for result of a trans/trans branch
ResultSuccess = "SUCCESS"
// ResultFailure for result of a trans/trans branch
ResultFailure = "FAILURE"
// DBTypeMysql const for driver mysql
DBTypeMysql = "mysql"
// DBTypePostgres const for driver postgres
DBTypePostgres = "postgres"
)