github.com/kaituanwang/hyperledger@v2.0.1+incompatible/core/chaincode/handler_internal_test.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package chaincode 8 9 import ( 10 "github.com/hyperledger/fabric/core/container/ccintf" 11 ) 12 13 // Helpers to access unexported state. 14 15 func SetHandlerChaincodeID(h *Handler, chaincodeID string) { 16 h.chaincodeID = chaincodeID 17 } 18 19 func SetHandlerChatStream(h *Handler, chatStream ccintf.ChaincodeStream) { 20 h.chatStream = chatStream 21 } 22 23 func StreamDone(h *Handler) <-chan struct{} { 24 return h.streamDone() 25 } 26 27 func SetStreamDoneChan(h *Handler, ch chan struct{}) { 28 h.streamDoneChan = ch 29 }