model

package
v2.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalTransaction

type GlobalTransaction struct {
	*apis.GlobalSession

	BranchSessions map[*apis.BranchSession]bool
}

func (*GlobalTransaction) Add

func (gt *GlobalTransaction) Add(branchSession *apis.BranchSession)

func (*GlobalTransaction) Begin

func (gt *GlobalTransaction) Begin()

func (*GlobalTransaction) CanBeCommittedAsync

func (gt *GlobalTransaction) CanBeCommittedAsync() bool

func (*GlobalTransaction) GetBranch

func (gt *GlobalTransaction) GetBranch(branchID int64) *apis.BranchSession

func (*GlobalTransaction) HasBranch

func (gt *GlobalTransaction) HasBranch() bool

func (*GlobalTransaction) IsRollingBackDead

func (gt *GlobalTransaction) IsRollingBackDead() bool

func (*GlobalTransaction) IsSaga

func (gt *GlobalTransaction) IsSaga() bool

func (*GlobalTransaction) IsTimeout

func (gt *GlobalTransaction) IsTimeout() bool

func (*GlobalTransaction) IsTimeoutGlobalStatus

func (gt *GlobalTransaction) IsTimeoutGlobalStatus() bool

func (*GlobalTransaction) Remove

func (gt *GlobalTransaction) Remove(branchSession *apis.BranchSession)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL