Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSystemChaincodeProviderFactory ¶ added in v1.0.0
func RegisterSystemChaincodeProviderFactory(sccfact SystemChaincodeProviderFactory)
RegisterSystemChaincodeProviderFactory is to be called once to set the factory that will be used to obtain instances of ChaincodeProvider
Types ¶
type SystemChaincodeProvider ¶
type SystemChaincodeProvider interface { // IsSysCC returns true if the supplied chaincode is a system chaincode IsSysCC(name string) bool }
SystemChaincodeProvider provides an abstraction layer that is used for different packages to interact with code in the system chaincode package without importing it; more methods should be added below if necessary
func GetSystemChaincodeProvider ¶ added in v1.0.0
func GetSystemChaincodeProvider() SystemChaincodeProvider
GetSystemChaincodeProvider returns instances of SystemChaincodeProvider; the actual implementation is controlled by the factory that is registered via RegisterSystemChaincodeProviderFactory
type SystemChaincodeProviderFactory ¶ added in v1.0.0
type SystemChaincodeProviderFactory interface {
NewSystemChaincodeProvider() SystemChaincodeProvider
}
SystemChaincodeProviderFactory defines a factory interface so that the actual implementation can be injected