...

Package ccintf

import "github.com/hyperledger/fabric/core/container/ccintf"
Overview
Index

Overview ▾

func GetCCHandlerKey

func GetCCHandlerKey() string

GetCCHandlerKey is used to pass CCSupport via context

type CCID

CCID encapsulates chaincode ID

type CCID struct {
    Name    string
    Version string
}

func (*CCID) GetName

func (ccid *CCID) GetName() string

GetName returns canonical chaincode name based on the fields of CCID

type CCSupport

CCSupport must be implemented by the chaincode support side in peer (such as chaincode_support)

type CCSupport interface {
    HandleChaincodeStream(ChaincodeStream) error
}

type ChaincodeStream

ChaincodeStream interface for stream between Peer and chaincode instance.

type ChaincodeStream interface {
    Send(*pb.ChaincodeMessage) error
    Recv() (*pb.ChaincodeMessage, error)
}