本文整理匯總了Golang中github.com/hyperledger/fabric/core/chaincode/shim.Start函數的典型用法代碼示例。如果您正苦於以下問題:Golang Start函數的具體用法?Golang Start怎麽用?Golang Start使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Start函數的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: main
func main() {
err := shim.Start(new(SampleChaincode))
if err != nil {
fmt.Printf("Error starting Sample chaincode: %s \n", err)
}
}
示例2: main
func main() {
primitives.SetSecurityLevel("SHA3", 256)
err := shim.Start(new(AssetManagementChaincode))
if err != nil {
fmt.Printf("Error starting AssetManagementChaincode: %s", err)
}
}
示例3: main
func main() {
// primitives.SetSecurityLevel("SHA3", 256)
err := shim.Start(new(AssetManagementChaincode))
if err != nil {
myLogger.Debugf("Error starting AssetManagementChaincode: %s", err)
}
}
示例4: main
func main() {
c := newCounters()
c.logger.SetLevel(shim.LogInfo)
shim.SetLoggingLevel(shim.LogWarning)
// This is required because we need the lengths (len()) of our arrays to
// support large (> 2^32) byte arrays.
c.assert(busy.SizeOfInt() == 8, "The 'counters' chaincode is only supported on platforms where Go integers are 8-byte integers")
err := shim.Start(c)
if err != nil {
c.logger.Criticalf("main : Error starting counters chaincode: %s", err)
os.Exit(1)
}
}
示例5: main
func main() {
err := shim.Start(new(Attributes2State))
if err != nil {
fmt.Printf("Error running Attributes2State chaincode: %s", err)
}
}
示例6: main
func main() {
err := shim.Start(new(AssetManagementChaincode))
if err != nil {
fmt.Printf("Error starting AssetManagementChaincode: %s", err)
}
}
示例7: initChaincode
func initChaincode() {
err := shim.Start(new(RBACChaincode))
if err != nil {
panic(err)
}
}
示例8: main
func main() {
err := shim.Start(new(EventSender))
if err != nil {
fmt.Printf("Error starting EventSender chaincode: %s", err)
}
}
示例9: main
func main() {
err := shim.Start(new(PassthruChaincode))
if err != nil {
fmt.Printf("Error starting Passthru chaincode: %s", err)
}
}
示例10: initAssetManagementChaincode
func initAssetManagementChaincode() {
err := shim.Start(new(AssetManagementChaincode))
if err != nil {
panic(err)
}
}
示例11: main
func main() {
err := shim.Start(new(AuthorizableCounterChaincode))
if err != nil {
fmt.Printf("Error starting Simple chaincode: %s", err)
}
}
示例12: main
func main() {
err := shim.Start(new(systemChaincode))
if err != nil {
fmt.Printf("Error starting System chaincode: %s", err)
}
}