Documentation
¶
Index ¶
- func CleanupTestPath(storePath string)
- func CleanupUserData(sdk *fabsdk.FabricSDK)
- func DiscoverLocalPeers(ctxProvider contextAPI.ClientProvider, expectedPeers int) ([]fab.Peer, error)
- func WaitForOrdererConfigUpdate(client *resmgmt.Client, channelID string, genesis bool, lastConfigBlock uint64) uint64
- type FabricSetup
- func (setup *FabricSetup) CloseSDK()
- func (setup *FabricSetup) InitSre(value string) (string, error)
- func (setup *FabricSetup) Initialize() error
- func (setup *FabricSetup) InstallAndInstantiateCC() error
- func (setup *FabricSetup) InvokeSre(value string) (string, error)
- func (setup *FabricSetup) InvokeSreCC(value string) (string, error)
- func (setup *FabricSetup) QuerySre(value string) (string, error)
- func (setup *FabricSetup) QuerySreCC(value string) (string, error)
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 ¶
CleanupUserData removes user data.
func DiscoverLocalPeers ¶
func DiscoverLocalPeers(ctxProvider contextAPI.ClientProvider, expectedPeers int) ([]fab.Peer, error)
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
Click to show internal directories.
Click to hide internal directories.