inmemory

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocker

func NewLocker(l Locker) *locker

Types

type Locker

type Locker interface {
	Lock(ctx context.Context, id *token.ID, txID string, reclaim bool) (string, error)
	UnlockByTxID(ctx context.Context, txID string)
}

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