Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + func AssertIteratorContains(t *testing.T, itr RangeScanIterator, expected map[string][]byte) + func ConstructCompositeKey(chaincodeID string, key string) []byte + func Copy(src []byte) []byte + func DecodeCompositeKey(compositeKey []byte) (string, string) + type ChaincodeStateDelta struct + ChaincodeID string + UpdatedKVs map[string]*UpdatedValue + type HashableState interface + AddChangesForPersistence func(writeBatch *gorocksdb.WriteBatch) error + ClearWorkingSet func(changesPersisted bool) + ComputeCryptoHash func() ([]byte, error) + Get func(chaincodeID string, key string) ([]byte, error) + GetRangeScanIterator func(chaincodeID string, startKey string, endKey string) (RangeScanIterator, error) + GetStateSnapshotIterator func(snapshot *gorocksdb.Snapshot) (StateSnapshotIterator, error) + Initialize func(configs map[string]interface{}) error + PerfHintKeyChanged func(chaincodeID string, key string) + PrepareWorkingSet func(stateDelta *StateDelta) error + type RangeScanIterator interface + Close func() + GetKeyValue func() (string, []byte) + Next func() bool + type StateDelta struct + ChaincodeStateDeltas map[string]*ChaincodeStateDelta + RollBackwards bool + func NewStateDelta() *StateDelta + func (stateDelta *StateDelta) ApplyChanges(anotherStateDelta *StateDelta) + func (stateDelta *StateDelta) ComputeCryptoHash() []byte + func (stateDelta *StateDelta) Delete(chaincodeID string, key string, previousValue []byte) + func (stateDelta *StateDelta) Get(chaincodeID string, key string) *UpdatedValue + func (stateDelta *StateDelta) GetUpdatedChaincodeIds(sorted bool) []string + func (stateDelta *StateDelta) GetUpdates(chaincodeID string) map[string]*UpdatedValue + func (stateDelta *StateDelta) IsEmpty() bool + func (stateDelta *StateDelta) IsUpdatedValueSet(chaincodeID, key string) bool + func (stateDelta *StateDelta) Marshal() (b []byte) + func (stateDelta *StateDelta) Set(chaincodeID string, key string, value, previousValue []byte) + func (stateDelta *StateDelta) Unmarshal(bytes []byte) error + type StateDeltaIterator struct + func NewStateDeltaRangeScanIterator(delta *StateDelta, chaincodeID string, startKey string, endKey string) *StateDeltaIterator + func (itr *StateDeltaIterator) Close() + func (itr *StateDeltaIterator) ContainsKey(key string) bool + func (itr *StateDeltaIterator) GetKeyValue() (string, []byte) + func (itr *StateDeltaIterator) Next() bool + type StateSnapshotIterator interface + Close func() + GetRawKeyValue func() ([]byte, []byte) + Next func() bool + type UpdatedValue struct + PreviousValue []byte + Value []byte + func (updatedValue *UpdatedValue) GetPreviousValue() []byte + func (updatedValue *UpdatedValue) GetValue() []byte + func (updatedValue *UpdatedValue) IsDelete() bool