ccintf

package
v0.0.0-...-1d5e6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCCHandlerKey

func GetCCHandlerKey() string

GetCCHandlerKey is used to pass CCSupport via context

Types

type CCID

type CCID struct {
	ChaincodeSpec *pb.ChaincodeSpec
	NetworkID     string
	PeerID        string
}

CCID encapsulates chaincode ID

type CCSupport

type CCSupport interface {
	HandleChaincodeStream(context.Context, 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