Documentation ¶
Overview ¶
Package pvtstatepurgemgmt is a generated protocol buffer package.
It is generated from these files:
pvtdata_key.proto
It has these top-level messages:
PvtdataKeys Collections KeysAndHashes KeyAndHash
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collections ¶
type Collections struct {
Map map[string]*KeysAndHashes `` /* 126-byte string literal not displayed */
}
func (*Collections) Descriptor ¶
func (*Collections) Descriptor() ([]byte, []int)
func (*Collections) GetMap ¶
func (m *Collections) GetMap() map[string]*KeysAndHashes
func (*Collections) ProtoMessage ¶
func (*Collections) ProtoMessage()
func (*Collections) Reset ¶
func (m *Collections) Reset()
func (*Collections) String ¶
func (m *Collections) String() string
type KeyAndHash ¶
type KeyAndHash struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` }
func (*KeyAndHash) Descriptor ¶
func (*KeyAndHash) Descriptor() ([]byte, []int)
func (*KeyAndHash) GetHash ¶
func (m *KeyAndHash) GetHash() []byte
func (*KeyAndHash) GetKey ¶
func (m *KeyAndHash) GetKey() string
func (*KeyAndHash) ProtoMessage ¶
func (*KeyAndHash) ProtoMessage()
func (*KeyAndHash) Reset ¶
func (m *KeyAndHash) Reset()
func (*KeyAndHash) String ¶
func (m *KeyAndHash) String() string
type KeysAndHashes ¶
type KeysAndHashes struct {
List []*KeyAndHash `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
}
func (*KeysAndHashes) Descriptor ¶
func (*KeysAndHashes) Descriptor() ([]byte, []int)
func (*KeysAndHashes) GetList ¶
func (m *KeysAndHashes) GetList() []*KeyAndHash
func (*KeysAndHashes) ProtoMessage ¶
func (*KeysAndHashes) ProtoMessage()
func (*KeysAndHashes) Reset ¶
func (m *KeysAndHashes) Reset()
func (*KeysAndHashes) String ¶
func (m *KeysAndHashes) String() string
type PurgeMgr ¶
type PurgeMgr interface { // PrepareForExpiringKeys gives a chance to the PurgeMgr to do background work in advance if any PrepareForExpiringKeys(expiringAtBlk uint64) // WaitForPrepareToFinish holds the caller till the background goroutine lauched by 'PrepareForExpiringKeys' is finished WaitForPrepareToFinish() // DeleteExpiredAndUpdateBookkeeping updates the bookkeeping and modifies the update batch by adding the deletes for the expired pvtdata DeleteExpiredAndUpdateBookkeeping( pvtUpdates *privacyenabledstate.PvtUpdateBatch, hashedUpdates *privacyenabledstate.HashedUpdateBatch) error // BlockCommitDone is a callback to the PurgeMgr when the block is committed to the ledger BlockCommitDone() error }
PurgeMgr manages purging of the expired pvtdata
func InstantiatePurgeMgr ¶
func InstantiatePurgeMgr(ledgerid string, db privacyenabledstate.DB, btlPolicy pvtdatapolicy.BTLPolicy, bookkeepingProvider bookkeeping.Provider) (PurgeMgr, error)
InstantiatePurgeMgr instantiates a PurgeMgr.
type PvtdataKeys ¶
type PvtdataKeys struct {
Map map[string]*Collections `` /* 126-byte string literal not displayed */
}
func (*PvtdataKeys) Descriptor ¶
func (*PvtdataKeys) Descriptor() ([]byte, []int)
func (*PvtdataKeys) GetMap ¶
func (m *PvtdataKeys) GetMap() map[string]*Collections
func (*PvtdataKeys) ProtoMessage ¶
func (*PvtdataKeys) ProtoMessage()
func (*PvtdataKeys) Reset ¶
func (m *PvtdataKeys) Reset()
func (*PvtdataKeys) String ¶
func (m *PvtdataKeys) String() string
Click to show internal directories.
Click to hide internal directories.