Documentation ¶
Index ¶
- func ChangeGOPATHToDeploy(deployPath string)
- func CreateAndJoinChannel(client fabricClient.Client, ordererUser fabricClient.User, ...) error
- func CreateAndSendTransaction(chain fabricClient.Chain, resps []*fabricClient.TransactionProposalResponse) ([]*fabricClient.TransactionResponse, error)
- func CreateAndSendTransactionProposal(chain fabricClient.Chain, chainCodeID string, chainID string, args []string, ...) ([]*fabricClient.TransactionProposalResponse, string, error)
- func GenerateRandomID() string
- func GetChain(client fabricClient.Client, chainID string) (fabricClient.Chain, error)
- func GetClient(name string, pwd string, stateStorePath string) (fabricClient.Client, error)
- func GetMember(client fc.Client, name string, pwd string) (fc.User, error)
- func GetPreEnrolledUser(c fc.Client, keyDir string, certDir string, username string) (fc.User, error)
- func RegisterCCEvent(chainCodeID, eventID string, eventHub events.EventHub) (chan bool, *events.ChainCodeCBE)
- func RegisterTxEvent(txID string, eventHub events.EventHub) (chan bool, chan error)
- func ResetGOPATH()
- func SendInstallCC(client fabricClient.Client, chain fabricClient.Chain, chainCodeID string, ...) error
- func SendInstantiateCC(chain fabricClient.Chain, chainCodeID string, chainID string, args []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeGOPATHToDeploy ¶
func ChangeGOPATHToDeploy(deployPath string)
ChangeGOPATHToDeploy changes go path to fixtures folder
func CreateAndJoinChannel ¶
func CreateAndJoinChannel(client fabricClient.Client, ordererUser fabricClient.User, orgUser fabricClient.User, chain fabricClient.Chain, channelConfig string) error
CreateAndJoinChannel creates the channel represented by this chain and makes the primary peer join it. It reads channel configuration from tx channelConfig file
func CreateAndSendTransaction ¶
func CreateAndSendTransaction(chain fabricClient.Chain, resps []*fabricClient.TransactionProposalResponse) ([]*fabricClient.TransactionResponse, error)
CreateAndSendTransaction combines create and send transaction methods into one method. See CreateTransaction and SendTransaction
func CreateAndSendTransactionProposal ¶
func CreateAndSendTransactionProposal(chain fabricClient.Chain, chainCodeID string, chainID string, args []string, targets []fabricClient.Peer, transientData map[string][]byte) ([]*fabricClient.TransactionProposalResponse, string, error)
CreateAndSendTransactionProposal combines create and send transaction proposal methods into one method. See CreateTransactionProposal and SendTransactionProposal
func GetChain ¶
func GetChain(client fabricClient.Client, chainID string) (fabricClient.Chain, error)
GetChain initializes and returns a chain based on config
func GetPreEnrolledUser ¶
func GetPreEnrolledUser(c fc.Client, keyDir string, certDir string, username string) (fc.User, error)
GetPreEnrolledUser ...
func RegisterCCEvent ¶
func RegisterCCEvent(chainCodeID, eventID string, eventHub events.EventHub) (chan bool, *events.ChainCodeCBE)
RegisterCCEvent registers chain code event on the given eventhub @returns {chan bool} channel which receives true when the event is complete @returns {object} ChainCodeCBE object handle that should be used to unregister
func RegisterTxEvent ¶
RegisterTxEvent registers on the given eventhub for the give transaction returns a boolean channel which receives true when the event is complete and an error channel for errors
func SendInstallCC ¶
func SendInstallCC(client fabricClient.Client, chain fabricClient.Chain, chainCodeID string, chainCodePath string, chainCodeVersion string, chaincodePackage []byte, targets []fabricClient.Peer, deployPath string) error
SendInstallCC Sends an install proposal to one or more endorsing peers.
func SendInstantiateCC ¶
func SendInstantiateCC(chain fabricClient.Chain, chainCodeID string, chainID string, args []string, chaincodePath string, chaincodeVersion string, targets []fabricClient.Peer, eventHub events.EventHub) error
SendInstantiateCC Sends instantiate CC proposal to one or more endorsing peers
Types ¶
This section is empty.