blockchain

package
v0.0.0-...-d482fdf Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 13 Imported by: 6

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
	OrdererID   string
	ChannelID   string
	ChainCodeID string

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

FabricSetup implementation

func (*FabricSetup) CloseSDK

func (setup *FabricSetup) CloseSDK()

func (*FabricSetup) Initialize

func (setup *FabricSetup) Initialize() error

Initialize reads the configuration file and sets up the client, chain and event hub

func (*FabricSetup) InstallAndInstantiateCC

func (setup *FabricSetup) InstallAndInstantiateCC() error

func (*FabricSetup) InvokeHello

func (setup *FabricSetup) InvokeHello(value string) (string, error)

InvokeHello

func (*FabricSetup) QueryHello

func (setup *FabricSetup) QueryHello() (string, error)

QueryHello query the chaincode to get the state of hello

Jump to

Keyboard shortcuts

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