vault

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v uint64) []byte

func Unmarshal

func Unmarshal(raw []byte) uint64

Types

type CounterBasedVersionBuilder

type CounterBasedVersionBuilder struct{}

func (*CounterBasedVersionBuilder) VersionedMetaValues

func (*CounterBasedVersionBuilder) VersionedValues

type CounterBasedVersionComparator

type CounterBasedVersionComparator struct{}

func (*CounterBasedVersionComparator) Equal

type Interceptor

type Interceptor[V driver.ValidationCode] struct {
	*vault.Interceptor[V]
	// contains filtered or unexported fields
}

func (*Interceptor[V]) AppendRWSet

func (i *Interceptor[V]) AppendRWSet(raw []byte, nss ...string) error

func (*Interceptor[V]) Bytes

func (i *Interceptor[V]) Bytes() ([]byte, error)

type Marshaller

type Marshaller struct {
	NsInfo map[driver.Namespace]driver.RawVersion
}

Marshaller is the custom marshaller for fabricx.

func NewMarshaller

func NewMarshaller() *Marshaller

func (*Marshaller) Append

func (m *Marshaller) Append(destination *vault.ReadWriteSet, raw []byte, namespaces ...string) error

func (*Marshaller) Marshal

func (m *Marshaller) Marshal(txID string, rws *vault.ReadWriteSet) ([]byte, error)

func (*Marshaller) RWSetFromBytes

func (m *Marshaller) RWSetFromBytes(raw []byte, namespaces ...string) (*vault.ReadWriteSet, error)

type Vault

func New

func New(
	configService fdriver.ConfigService,
	vaultStore driver.VaultStore,
	channel string,
	_ queryservice.Provider,
	metricsProvider metrics.Provider,
	tracerProvider trace.TracerProvider,
) (*Vault, error)

func NewVault

func NewVault(vaultStore vault2.CachedVaultStore, metricsProvider metrics.Provider, tracerProvider trace.TracerProvider) *Vault

NewVault returns a new instance of Vault.

Directories

Path Synopsis
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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