Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollHashedRwSet ¶
type CollHashedRwSet struct { CollectionName string HashedRwSet *kvrwset.HashedRWSet PvtRwSetHash []byte }
CollHashedRwSet encapsulates 'kvrwset.HashedRWSet' proto message for a specific collection
type CollPvtRwSet ¶
CollPvtRwSet encapsulates 'kvrwset.KVRWSet' proto message for a private rwset for a specific collection KvRwSet in a private RwSet should not contain range query info
type NsPvtRwSet ¶
type NsPvtRwSet struct { NameSpace string CollPvtRwSets []*CollPvtRwSet }
NsPvtRwSet represents 'rwset.NsPvtReadWriteSet' proto message
type NsRwSet ¶
type NsRwSet struct { NameSpace string KvRwSet *kvrwset.KVRWSet CollHashedRwSets []*CollHashedRwSet }
NsRwSet encapsulates 'kvrwset.KVRWSet' proto message for a specific name space (chaincode)
type TxPvtRwSet ¶
type TxPvtRwSet struct {
NsPvtRwSet []*NsPvtRwSet
}
TxPvtRwSet represents 'rwset.TxPvtReadWriteSet' proto message
func TxPvtRwSetFromProtoMsg ¶
func TxPvtRwSetFromProtoMsg(protoMsg *rwset.TxPvtReadWriteSet) (*TxPvtRwSet, error)
func (*TxPvtRwSet) FromProtoBytes ¶
func (txPvtRwSet *TxPvtRwSet) FromProtoBytes(protoBytes []byte) error
FromProtoBytes deserializes protobytes into 'TxPvtReadWriteSet' proto message and populates 'TxPvtRwSet'
func (*TxPvtRwSet) ToProtoBytes ¶
func (txPvtRwSet *TxPvtRwSet) ToProtoBytes() ([]byte, error)
ToProtoBytes constructs 'TxPvtReadWriteSet' proto message and serializes using protobuf Marshal
type TxRwSet ¶
type TxRwSet struct {
NsRwSets []*NsRwSet
}
TxRwSet acts as a proxy of 'rwset.TxReadWriteSet' proto message and helps constructing Read-write set specifically for KV data model
func TxRwSetFromProtoMsg ¶
func TxRwSetFromProtoMsg(protoMsg *rwset.TxReadWriteSet) (*TxRwSet, error)
func (*TxRwSet) FromProtoBytes ¶
FromProtoBytes deserializes protobytes into TxReadWriteSet proto message and populates 'TxRwSet'
func (*TxRwSet) ToProtoBytes ¶
ToProtoBytes constructs TxReadWriteSet proto message and serializes using protobuf Marshal