sysccprovider

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChaincodeInstance

type ChaincodeInstance struct {
	ChainID          string
	ChaincodeName    string
	ChaincodeVersion string
}

chaincode instance是chaincode实例的唯一标识符

func (*ChaincodeInstance) String

func (ci *ChaincodeInstance) String() string

type SystemChaincodeProvider

type SystemChaincodeProvider interface {
	//如果提供的链码是系统链码,ISSysCC将返回true。
	IsSysCC(name string) bool

	//如果提供的链码为
	//是系统链代码,不能通过cc2cc调用调用
	IsSysCCAndNotInvokableCC2CC(name string) bool

	//如果提供的链代码为
	//是一个系统链码,并不是通过提案不可接受的。
	IsSysCCAndNotInvokableExternal(name string) bool

	//GetQueryExecutorForLedger返回
	//所提供频道的分类帐。
	//这对于需要不受约束的系统链代码很有用
	//访问分类帐
	GetQueryExecutorForLedger(cid string) (ledger.QueryExecutor, error)

	//GETAPPLICATIOFIGG返回通道的CONTXXAPPLATION.SARDCONFIGG
	//以及应用程序配置是否存在
	GetApplicationConfig(cid string) (channelconfig.Application, bool)

	//返回与传递的通道关联的策略管理器
	//以及策略管理器是否存在
	PolicyManager(channelID string) (policies.Manager, bool)
}

StaskChanoCeDev提供提供了一个抽象层 用于不同的包与中的代码交互 system chaincode package without importing it; more methods 如有必要,应在下面添加

Jump to

Keyboard shortcuts

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