Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSystemChaincodeProviderFactory ¶
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 ¶
func GetSystemChaincodeProvider() SystemChaincodeProvider
GetSystemChaincodeProvider returns instances of SystemChaincodeProvider; the actual implementation is controlled by the factory that is registered via RegisterSystemChaincodeProviderFactory
type SystemChaincodeProviderFactory ¶
type SystemChaincodeProviderFactory interface {
NewSystemChaincodeProvider() SystemChaincodeProvider
}
SystemChaincodeProviderFactory defines a factory interface so that the actual implementation can be injected