blockchain

package
v0.0.0-...-f89af2f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupTestPath

func CleanupTestPath(storePath string)

CleanupTestPath removes the contents of a state store.

func CleanupUserData

func CleanupUserData(sdk *fabsdk.FabricSDK)

CleanupUserData removes user data.

func DiscoverLocalPeers

func DiscoverLocalPeers(ctxProvider contextAPI.ClientProvider, expectedPeers int) ([]fab.Peer, error)

func WaitForOrdererConfigUpdate

func WaitForOrdererConfigUpdate(client *resmgmt.Client, channelID string, genesis bool, lastConfigBlock uint64) uint64

Types

type FabricSetup

type FabricSetup struct {
	OrdererAdmin    string
	OrdererOrgName  string
	ConfigFile      string
	OrdererID       string
	OrgmspID        string
	ChannelID       string
	ChannelListID   []string
	ChainCodeID     string
	ChainCodeListID []string

	ChannelConfig string
	//	ChannelListConfig[]   string
	ChaincodeGoPath string
	ChaincodePath   string
	Org_nowAdmin    string
	Org_nowUser     string
	Org2Admin       string
	Org2User        string
	Org3Admin       string
	Org3User        string
	Org4Admin       string
	Org4User        string
	Org5Admin       string
	Org5User        string
	Org6Admin       string
	Org6User        string
	Org_now         string
	Org2            string
	Org3            string
	Org4            string
	Org5            string
	Org6            string
	// contains filtered or unexported fields
}

FabricSetup implementation

func (*FabricSetup) CloseSDK

func (setup *FabricSetup) CloseSDK()

func (*FabricSetup) InitSre

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

InitSre query the chaincode to get the state of Sre

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) InvokeSre

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

InvokeHello

func (*FabricSetup) InvokeSreCC

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

func (*FabricSetup) QuerySre

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

QuerySre query the chaincode to get the state of sre

func (*FabricSetup) QuerySreCC

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

QuerySreCC query the chaincode to get the state of sreCC

Jump to

Keyboard shortcuts

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