server

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: 24 Imported by: 0

Documentation

Index

Constants

View Source
const AlwaysRetryBoundary = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackMessageQueue

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

func NewCallbackMessageQueue

func NewCallbackMessageQueue() *CallbackMessageQueue

func (*CallbackMessageQueue) Dequeue

func (p *CallbackMessageQueue) Dequeue() *apis.BranchMessage

func (*CallbackMessageQueue) Enqueue

func (p *CallbackMessageQueue) Enqueue(msg *apis.BranchMessage)

type GlobalSessionLocker

type GlobalSessionLocker interface {
	TryLock(session *apis.GlobalSession, timeout time.Duration) (bool, error)

	Unlock(session *apis.GlobalSession)
}

type TransactionCoordinator

type TransactionCoordinator struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTransactionCoordinator

func NewTransactionCoordinator(conf *config.Configuration) *TransactionCoordinator

func (*TransactionCoordinator) Begin

func (*TransactionCoordinator) BranchCommunicate

func (*TransactionCoordinator) BranchRegister

func (*TransactionCoordinator) BranchReport

func (*TransactionCoordinator) Commit

func (*TransactionCoordinator) GetStatus

func (*TransactionCoordinator) GlobalReport

func (*TransactionCoordinator) LockQuery

func (*TransactionCoordinator) Rollback

type UnimplementedGlobalSessionLocker

type UnimplementedGlobalSessionLocker struct {
}

func (*UnimplementedGlobalSessionLocker) TryLock

func (locker *UnimplementedGlobalSessionLocker) TryLock(session *apis.GlobalSession, timeout time.Duration) (bool, error)

func (*UnimplementedGlobalSessionLocker) Unlock

func (locker *UnimplementedGlobalSessionLocker) Unlock(session *apis.GlobalSession)

Jump to

Keyboard shortcuts

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