inmemory

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Valid   int // Transaction is valid and committed
	Invalid     // Transaction is invalid and has been discarded
)

Variables

View Source
var (
	AlreadyLockedError = errors.New("already locked")
)

Functions

func NewLocker

func NewLocker(vault Vault, timeout time.Duration, validTxEvictionTimeout time.Duration) selector.Locker

Types

type Vault

type Vault interface {
	Status(id string) (int, error)
}

Jump to

Keyboard shortcuts

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