Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BTLPolicy ¶
type BTLPolicy interface { //getbtl返回给定命名空间和集合的blocktoLive GetBTL(ns string, coll string) (uint64, error) //GetExpiringBlock返回给定命名空间、集合和CommitingBlock的pvtData的到期块号。 GetExpiringBlock(namesapce string, collection string, committingBlock uint64) (uint64, error) }
btlpolicy blocktoLive策略用于pvt数据
func ConstructBTLPolicy ¶
func ConstructBTLPolicy(collInfoProvider collectionInfoProvider) BTLPolicy
constructbtlpolicy构造lsccbasedbtlpolicy的实例
type LSCCBasedBTLPolicy ¶
type LSCCBasedBTLPolicy struct {
// contains filtered or unexported fields
}
lsccbasedbtlpolicy实现接口btlpolicy。 此实现从已填充的lscc命名空间加载btl策略 链码初始化期间的集合配置
func (*LSCCBasedBTLPolicy) GetBTL ¶
func (p *LSCCBasedBTLPolicy) GetBTL(namesapce string, collection string) (uint64, error)
getbtl在接口“btlpolicymgr”中实现相应的函数
func (*LSCCBasedBTLPolicy) GetExpiringBlock ¶
func (p *LSCCBasedBTLPolicy) GetExpiringBlock(namesapce string, collection string, committingBlock uint64) (uint64, error)
GetExpiringBlock从接口“btlpolicy”实现函数
Click to show internal directories.
Click to hide internal directories.