core

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultRetryDeadThreshold = 130 * 1000

Variables

This section is empty.

Functions

func GetDistributedTransactionManager

func GetDistributedTransactionManager() proto.TransactionManager

func InitDistributedTransactionManager

func InitDistributedTransactionManager(conf *config.DistributedTransaction)

Types

type DistributedTransactionManager

type DistributedTransactionManager struct {
	// contains filtered or unexported fields
}

func (*DistributedTransactionManager) Begin

func (manager *DistributedTransactionManager) Begin(ctx context.Context, transactionName string, timeout int32) (string, error)

func (*DistributedTransactionManager) BranchRegister

func (manager *DistributedTransactionManager) BranchRegister(ctx context.Context, in *proto.BranchRegister) (string, int64, error)

func (*DistributedTransactionManager) BranchReport

func (manager *DistributedTransactionManager) BranchReport(ctx context.Context, branchID string, status api.BranchSession_BranchStatus) error

func (*DistributedTransactionManager) Commit

func (*DistributedTransactionManager) IsLockable

func (manager *DistributedTransactionManager) IsLockable(ctx context.Context, resourceID, lockKey string) (bool, error)

func (*DistributedTransactionManager) IsLockableWithXID added in v1.0.2

func (manager *DistributedTransactionManager) IsLockableWithXID(ctx context.Context, resourceID, lockKey, xid string) (bool, error)

func (*DistributedTransactionManager) IsRollingBackDead

func (manager *DistributedTransactionManager) IsRollingBackDead(bs *api.BranchSession) bool

func (*DistributedTransactionManager) ReleaseLockKeys

func (manager *DistributedTransactionManager) ReleaseLockKeys(ctx context.Context, resourceID string, lockKeys []string) (bool, error)

func (*DistributedTransactionManager) Rollback

Jump to

Keyboard shortcuts

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