Versions in this module Expand all Collapse all v0 v0.0.1 Apr 21, 2023 Changes in this version + func CreateCaptcha() string + func GetActionByPb(action proto.Action) consts.BranchAction + func GetGid() string + func GetTranTypeByPb(protoType proto.TranType) consts.TransactionType + type Branch struct + Action consts.BranchAction + BranchId string + CreateTime int64 + GID string + LastErrMsg string + Level consts.Level + Protocol string + ReqData string + ReqHeader string + State consts.BranchState + Timeout int64 + TranType consts.TransactionType + UpdateTime int64 + Url string + func (b *Branch) AssignmentByPb(m *proto.RegisterReq_Branch) *Branch + func (b *Branch) IsTcc() bool + func (b *Branch) SAGA() bool + func (b *Branch) SAGACompensation() bool + func (b *Branch) SAGANormal() bool + func (b *Branch) Success() bool + func (b *Branch) TableName() string + func (b *Branch) TccCancel() bool + func (b *Branch) TccConfirm() bool + func (b *Branch) TccTry() bool + type BranchList []*Branch + func GetBranchList(gid string, mList []*proto.RegisterReq_Branch) (list BranchList) + type Global struct + CreateTime int64 + EndTime int64 + GID string + NextCronTime int64 + State consts.GlobalState + TryTimes int64 + UpdateTime int64 + func NewGlobal(gId string) *Global + func (g *Global) AllowRegister() bool + func (g *Global) GetEndTime() int64 + func (g *Global) GetGId() string + func (g *Global) GetState() consts.GlobalState + func (g *Global) GotoCommit() bool + func (g *Global) GotoRollback() bool + func (g *Global) Init() bool + func (g *Global) IsEmpty() bool + func (g *Global) Phase1() bool + func (g *Global) Phase2() bool + func (g *Global) SetGId(gId string) + func (g *Global) SetState(state consts.GlobalState) + func (g *Global) TableName() string