driver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Committer

type Committer interface {
	Status(txid string) (driver.ValidationCode, []string, []view.Identity, error)
	Validate(txid string) (driver.ValidationCode, error)
	CommitTX(txid string, block uint64, indexInBloc int) error
	DiscardTX(txid string) error
}

type Driver

type Driver interface {
	// Open returns a new Committer with the respect to the passed vault.
	// The name is a string in a driver-specific format.
	// The returned Committer is only used by one goroutine at a time.
	Open(name string, sp view2.ServiceProvider, vault Vault) (Committer, error)
}

Driver is the interface that must be implemented by a committer driver.

type Vault

type Vault interface {
	CommitTX(txid string, block uint64, indexInBloc int) error
	DiscardTx(txid string) error
}

Vault models a key-value store that can be updated by committing rwsets

Jump to

Keyboard shortcuts

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