tx

package
v3.78.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Lazy = ID("")

Functions

This section is empty.

Types

type ID

type ID string

func NewID added in v3.76.4

func NewID(id string) ID

func (ID) ID

func (id ID) ID() string

type Identifier

type Identifier interface {
	ID() string
	// contains filtered or unexported methods
}

type OnTransactionCompletedFunc added in v3.76.4

type OnTransactionCompletedFunc func(transactionResult error)

type Transaction added in v3.76.4

type Transaction interface {
	Identifier
	UnLazy(ctx context.Context) error
	SessionID() string
	OnCompleted(f OnTransactionCompletedFunc)
	Rollback(ctx context.Context) error
}

func AsTransaction added in v3.76.4

func AsTransaction(id Identifier) (Transaction, error)

Jump to

Keyboard shortcuts

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