ccintf

package
v1.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCCHandlerKey added in v1.0.0

func GetCCHandlerKey() string

GetCCHandlerKey is used to pass CCSupport via context

Types

type CCID added in v1.0.0

type CCID struct {
	Name    string
	Version string
}

CCID encapsulates chaincode ID

func (*CCID) GetName added in v1.0.0

func (ccid *CCID) GetName() string

GetName returns canonical chaincode name based on the fields of CCID

type CCSupport added in v1.0.0

type CCSupport interface {
	HandleChaincodeStream(ChaincodeStream) error
}

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

type ChaincodeStream

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

ChaincodeStream interface for stream between Peer and chaincode instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL