txidstore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_platform_fabric_core_vault_txidstore_txid_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ByNum

type ByNum struct {
	Txid string `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	Code int32  `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*ByNum) Descriptor deprecated

func (*ByNum) Descriptor() ([]byte, []int)

Deprecated: Use ByNum.ProtoReflect.Descriptor instead.

func (*ByNum) GetCode

func (x *ByNum) GetCode() int32

func (*ByNum) GetTxid

func (x *ByNum) GetTxid() string

func (*ByNum) ProtoMessage

func (*ByNum) ProtoMessage()

func (*ByNum) ProtoReflect

func (x *ByNum) ProtoReflect() protoreflect.Message

func (*ByNum) Reset

func (x *ByNum) Reset()

func (*ByNum) String

func (x *ByNum) String() string

type ByTxid

type ByTxid struct {
	Pos  uint64 `protobuf:"varint,1,opt,name=pos,proto3" json:"pos,omitempty"`
	Code int32  `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*ByTxid) Descriptor deprecated

func (*ByTxid) Descriptor() ([]byte, []int)

Deprecated: Use ByTxid.ProtoReflect.Descriptor instead.

func (*ByTxid) GetCode

func (x *ByTxid) GetCode() int32

func (*ByTxid) GetPos

func (x *ByTxid) GetPos() uint64

func (*ByTxid) ProtoMessage

func (*ByTxid) ProtoMessage()

func (*ByTxid) ProtoReflect

func (x *ByTxid) ProtoReflect() protoreflect.Message

func (*ByTxid) Reset

func (x *ByTxid) Reset()

func (*ByTxid) String

func (x *ByTxid) String() string

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(backed txidStore, cache cache) *Cache

func (*Cache) Get

func (s *Cache) Get(txid string) (fdriver.ValidationCode, error)

func (*Cache) GetLastTxID

func (s *Cache) GetLastTxID() (string, error)

func (*Cache) Iterator

func (s *Cache) Iterator(pos interface{}) (fdriver.TxidIterator, error)

func (*Cache) Set

func (s *Cache) Set(txid string, code fdriver.ValidationCode) error

type SimpleTXIDStore

type SimpleTXIDStore struct {
	// contains filtered or unexported fields
}

func NewTXIDStore

func NewTXIDStore(persistence driver.Persistence) (*SimpleTXIDStore, error)

func (*SimpleTXIDStore) Get

func (*SimpleTXIDStore) GetLastTxID

func (s *SimpleTXIDStore) GetLastTxID() (string, error)

func (*SimpleTXIDStore) Iterator

func (s *SimpleTXIDStore) Iterator(pos interface{}) (fdriver.TxidIterator, error)

func (*SimpleTXIDStore) Set

func (s *SimpleTXIDStore) Set(txid string, code fdriver.ValidationCode) error

type SimpleTxidIterator

type SimpleTxidIterator struct {
	// contains filtered or unexported fields
}

func (*SimpleTxidIterator) Close

func (i *SimpleTxidIterator) Close()

func (*SimpleTxidIterator) Next

func (i *SimpleTxidIterator) Next() (*fdriver.ByNum, error)

Directories

Path Synopsis
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