enum

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FencePhaseNotExist fence phase not exist
	FencePhaseNotExist = FencePhase(0)

	// FencePhasePrepare prepare fence phase
	FencePhasePrepare = FencePhase(1)

	// FencePhaseCommit commit fence phase
	FencePhaseCommit = FencePhase(2)

	// FencePhaseRollback rollback fence phase
	FencePhaseRollback = FencePhase(3)
)
View Source
const (
	// StatusTried  phase 1: the commit tried.
	StatusTried = FenceStatus(1)

	// StatusCommitted phase 2: the committed.
	StatusCommitted = FenceStatus(2)

	// StatusRollbacked phase 2: the rollbacked.
	StatusRollbacked = FenceStatus(3)

	// StatusSuspended suspended status.
	StatusSuspended = FenceStatus(4)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FencePhase

type FencePhase byte

FencePhase used to mark the stage of a tcc transaction

type FenceStatus

type FenceStatus byte

FenceStatus Used to mark the state of a branch transaction

Jump to

Keyboard shortcuts

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