Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + const DefaultChain + const DevModeUserRunsChaincode + func Execute(ctxt context.Context, chain *ChaincodeSupport, t *pb.Transaction) ([]byte, error) + func ExecuteTransactions(ctxt context.Context, cname ChainName, xacts []*pb.Transaction) ([]byte, []error) + func HandleChaincodeStream(chaincodeSupport *ChaincodeSupport, stream pb.ChaincodeSupport_RegisterServer) error + func SetupTestConfig() + func SetupTestLogging() + type ChainName string + type ChaincodeSupport struct + func GetChain(name ChainName) *ChaincodeSupport + func NewChaincodeSupport(chainname ChainName, getPeerEndpoint func() (*pb.PeerEndpoint, error), ...) *ChaincodeSupport + func (chaincodeSupport *ChaincodeSupport) DeployChaincode(context context.Context, t *pb.Transaction) (*pb.ChaincodeDeploymentSpec, error) + func (chaincodeSupport *ChaincodeSupport) Execute(ctxt context.Context, chaincode string, msg *pb.ChaincodeMessage, ...) (*pb.ChaincodeMessage, error) + func (chaincodeSupport *ChaincodeSupport) GetExecutionContext(context context.Context, requestContext *pb.ChaincodeRequestContext) (*pb.ChaincodeExecutionContext, error) + func (chaincodeSupport *ChaincodeSupport) LaunchChaincode(context context.Context, t *pb.Transaction) (*pb.ChaincodeID, *pb.ChaincodeInput, error) + func (chaincodeSupport *ChaincodeSupport) Register(stream pb.ChaincodeSupport_RegisterServer) error + type Config struct + type DuplicateChaincodeHandlerError struct + ChaincodeID *pb.ChaincodeID + func (d *DuplicateChaincodeHandlerError) Error() string + type Handler struct + ChaincodeID *pb.ChaincodeID + ChatStream PeerChaincodeStream + FSM *fsm.FSM + func (handler *Handler) HandleMessage(msg *pb.ChaincodeMessage) error + type MessageHandler interface + HandleMessage func(msg *pb.ChaincodeMessage) error + SendMessage func(msg *pb.ChaincodeMessage) error + type PeerChaincodeStream interface + Recv func() (*pb.ChaincodeMessage, error) + Send func(*pb.ChaincodeMessage) error