blockchain

package
v0.0.0-...-4716047 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FabricSetup

type FabricSetup struct {
	ConfigFile  string
	OrgID       string
	ChannelID   string
	ChainCodeID string

	ChannelConfig   string
	ChaincodeGoPath string
	ChaincodePath   string
	OrgAdmin        string
	OrgName         string
	UserName        string
	// contains filtered or unexported fields
}

FabricSetup 实现

func (*FabricSetup) Initialize

func (setup *FabricSetup) Initialize() error

读取配置文件初始化 SDK 客户端、链和事件

func (*FabricSetup) InstallAndInstantiateCC

func (setup *FabricSetup) InstallAndInstantiateCC() error

安装和实例化chaincode

func (*FabricSetup) Invoke

func (setup *FabricSetup) Invoke(fnName string, key string, value string) (string, error)

更改状态

func (*FabricSetup) Query

func (setup *FabricSetup) Query(key string) (string, error)

查询链码key的值

Jump to

Keyboard shortcuts

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