 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BTLPolicy ¶
type BTLPolicy interface {
	// GetBTL returns BlockToLive for a given namespace and collection
	GetBTL(ns string, coll string) (uint64, error)
	// GetExpiringBlock returns the block number by which the pvtdata for given namespace,collection, and committingBlock should expire
	GetExpiringBlock(namesapce string, collection string, committingBlock uint64) (uint64, error)
}
    BTLPolicy BlockToLive policy for the pvt data
func ConstructBTLPolicy ¶
func ConstructBTLPolicy(collectionStore privdata.CollectionStore) BTLPolicy
ConstructBTLPolicy constructs an instance of LSCCBasedBTLPolicy
func NewBTLPolicy ¶
func NewBTLPolicy(ledger ledger.PeerLedger) BTLPolicy
NewBTLPolicy constructs an instance of LSCCBasedBTLPolicy
type LSCCBasedBTLPolicy ¶
type LSCCBasedBTLPolicy struct {
	// contains filtered or unexported fields
}
    LSCCBasedBTLPolicy implements interface BTLPolicy. This implementation loads the BTL policy from lscc namespace which is populated with the collection configuration during chaincode initialization
       Source Files
      ¶
      Source Files
      ¶
    
- btlpolicy.go
 Click to show internal directories. 
   Click to hide internal directories.