ccintf

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCCHandlerKey

func GetCCHandlerKey() string

getcchandlerkey用于通过上下文传递CCSUPPORT

Types

type CCID

type CCID struct {
	Name    string
	Version string
}

CCID封装了链代码ID

func (*CCID) GetName

func (ccid *CCID) GetName() string

getname返回基于ccid字段的规范链码名称

type CCSupport

type CCSupport interface {
	HandleChaincodeStream(ChaincodeStream) error
}

CCSUPPORT必须由对等机中的链码支持端实现。 (如链码支持)

type ChaincodeStream

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

对等端和链码实例之间的流的链码流接口。

Jump to

Keyboard shortcuts

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