client

package
v0.0.0-...-54b189c Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHAINCODE_TYPE = "golang"
)

Variables

This section is empty.

Functions

func FetchBlock

func FetchBlock(chainClient *ChainClient, channelID, blockIndex string) (string, error)

func GetChannelInfo

func GetChannelInfo(chainClient *ChainClient, channelID string) (*protocom.BlockchainInfo, error)

func InitConfig

func InitConfig() error

func InvokeForChainCode

func InvokeForChainCode(chainClient *ChainClient, channelID, chaincodeName, args string) error

func ListChannels

func ListChannels(chainClient *ChainClient) ([]*pb.ChannelInfo, error)

func ListInstalledForChaincode

func ListInstalledForChaincode(chainClient *ChainClient) ([]*pb.ChaincodeInfo, error)

func ListInstantiatedForChaincode

func ListInstantiatedForChaincode(chainClient *ChainClient, channelID string) ([]*pb.ChaincodeInfo, error)

func QueryForChaincode

func QueryForChaincode(chainClient *ChainClient, channelID, chaincodeName, args string) (string, error)

Types

type ChainClient

type ChainClient struct {
	Signer          msp.SigningIdentity
	EndorserClient  pb.EndorserClient
	BroadcastClient peercom.BroadcastClient
}

func GetDefaultClient

func GetDefaultClient() (*ChainClient, error)

func NewClient

func NewClient() (*ChainClient, error)

Jump to

Keyboard shortcuts

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