Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFileContent ¶
ExtractFileContent returns content of a fileselector field
func GetSettings ¶
GetSettings returns map of parameter values of a connector
func SetFlogoLogLevel ¶
SetFlogoLogLevel sets log level of a Flogo app logger according to env 'FLOGO_LOG_LEVEL'
Types ¶
type ConnectorSpec ¶
type ConnectorSpec struct { Name string NetworkConfig []byte EntityMatchers []byte OrgName string UserName string ChannelID string }
ConnectorSpec contains configuration parameters of a Fabric connector
type FabricClient ¶
type FabricClient struct {
// contains filtered or unexported fields
}
FabricClient holds fabric client pointers for chaincode invocations.
func NewFabricClient ¶
func NewFabricClient(config ConnectorSpec) (*FabricClient, error)
NewFabricClient returns a new or cached fabric client
func (*FabricClient) ExecuteChaincode ¶
func (c *FabricClient) ExecuteChaincode(ccID, fcn string, args [][]byte, transient map[string][]byte) ([]byte, error)
ExecuteChaincode sends invocation request to Fabric network
func (*FabricClient) QueryChaincode ¶
func (c *FabricClient) QueryChaincode(ccID, fcn string, args [][]byte, transient map[string][]byte) ([]byte, error)
QueryChaincode sends query request to Fabric network
Click to show internal directories.
Click to hide internal directories.