MCPcopy
hub / github.com/canopy-network/canopy / TxnReaderI

Interface TxnReaderI

store/txn.go:68–72  ·  view source on GitHub ↗

TxReaderI() defines the interface to read a TxnTransaction Txn implements this itself to allow for nested transactions

Source from the content-addressed store, hash-verified

66// TxReaderI() defines the interface to read a TxnTransaction
67// Txn implements this itself to allow for nested transactions
68type TxnReaderI interface {
69 Get(key []byte) ([]byte, lib.ErrorI)
70 NewIterator(prefix []byte, reverse bool, seek bool) (lib.IteratorI, lib.ErrorI)
71 Close() lib.ErrorI
72}
73
74// TxnWriterI() defines the interface to write a TxnTransaction
75// Txn implements this itself to allow for nested transactions

Callers 20

GetMethod · 0.65
MoveMethod · 0.65
GetMethod · 0.65
getCommitIDMethod · 0.65
getNodeMethod · 0.65
testDBGetFunction · 0.65
TestStoreSetGetDeleteFunction · 0.65
TestDoublyNestedTxnFunction · 0.65
IteratorMethod · 0.65
RevIteratorMethod · 0.65
ArchiveIteratorMethod · 0.65
NewIteratorMethod · 0.65

Implementers 2

Txnstore/txn.go
VersionedStorestore/versioned_store.go

Calls

no outgoing calls

Tested by

no test coverage detected