transaction

package
v0.0.0-...-a63ec68 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessMode

type AccessMode int
const (
	Read AccessMode = iota
	Write
)

type Key

type Key struct{}

type Operation

type Operation int
const (
	Rollback Operation = iota
	Commit
)

type Transactioner

type Transactioner interface {
	Tx(context.Context, AccessMode, func(context.Context) (Operation, error)) error
}

Jump to

Keyboard shortcuts

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