chaincode

package
v0.0.0-...-523a819 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstalledChaincode

type InstalledChaincode struct {
	Name    string
	Version string
	Id      []byte
}

InstalledChaincode定义有关已安装链代码的元数据

type Metadata

type Metadata struct {
	Name              string
	Version           string
	Policy            []byte
	Id                []byte
	CollectionsConfig []byte
}

元数据定义链码的通道范围元数据

type MetadataMapping

type MetadataMapping struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

metadata mapping定义了从chaincode名称到元数据的映射

func NewMetadataMapping

func NewMetadataMapping() *MetadataMapping

NewMetadataMapping创建新的元数据映射

func (*MetadataMapping) Aggregate

func (m *MetadataMapping) Aggregate() MetadataSet

聚合将所有元数据聚合到元数据集

func (*MetadataMapping) Lookup

func (m *MetadataMapping) Lookup(cc string) (Metadata, bool)

查找返回与给定链码关联的元数据

func (*MetadataMapping) Update

func (m *MetadataMapping) Update(ccMd Metadata)

更新更新更新映射中的链码元数据

type MetadataSet

type MetadataSet []Metadata

metadataset定义元数据的聚合

func (MetadataSet) AsChaincodes

func (ccs MetadataSet) AsChaincodes() []*gossip.Chaincode

aschaincodes将此元数据集转换为八卦片段。chaincodes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL