Documentation ¶
Index ¶
- type ProxyTx
- type TxContext
- func (ctx *TxContext) AppendLockKey(lockKey string)
- func (ctx *TxContext) AppendUndoItem(sqlUndoLog *undo.SqlUndoLog)
- func (ctx *TxContext) Bind(xid string)
- func (ctx *TxContext) BuildLockKeys() string
- func (ctx *TxContext) HasUndoLog() bool
- func (ctx *TxContext) InGlobalTransaction() bool
- func (ctx *TxContext) IsBranchRegistered() bool
- func (ctx *TxContext) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyTx ¶
func (*ProxyTx) AppendLockKey ¶
func (*ProxyTx) AppendUndoLog ¶
func (tx *ProxyTx) AppendUndoLog(undoLog *undo.SqlUndoLog)
func (*ProxyTx) GetResourceId ¶
func (*ProxyTx) IsGlobalLockRequire ¶
func (*ProxyTx) SetGlobalLockRequire ¶
type TxContext ¶
type TxContext struct { *context.RootContext Xid string BranchId int64 IsGlobalLockRequire bool LockKeysBuffer *model.Set SqlUndoItemsBuffer []*undo.SqlUndoLog }
func NewTxContext ¶
func NewTxContext(ctx *context.RootContext) *TxContext
func (*TxContext) AppendLockKey ¶
func (*TxContext) AppendUndoItem ¶
func (ctx *TxContext) AppendUndoItem(sqlUndoLog *undo.SqlUndoLog)
func (*TxContext) BuildLockKeys ¶
func (*TxContext) HasUndoLog ¶
func (*TxContext) InGlobalTransaction ¶
func (*TxContext) IsBranchRegistered ¶
Click to show internal directories.
Click to hide internal directories.