hfc.fabric_network.gateway
¶
Module Contents¶
Classes¶
|
The gateway peer provides the connection point for an application to access the Fabric network. |
-
hfc.fabric_network.gateway.
consoleHandler
¶
-
hfc.fabric_network.gateway.
_logger
¶
-
class
hfc.fabric_network.gateway.
Gateway
¶ Bases:
object
The gateway peer provides the connection point for an application to access the Fabric network. It can then be connected to a fabric network using the path to network profile.
-
mergeOptions
(self, currentOptions, additionalOptions)¶ Merge additional options to current options
- Parameters
currentOptions – current options
additionalOptions – additional options to be merged
- Returns
result
-
async
connect
(self, net_profile, options)¶ Connect to the Gateway with a connection profile and connection options. :param net_profile: Path to the Connection Profile :param options: Options such as wallet identity and user identity :return:
-
get_current_identity
(self)¶ - Returns
The current identity being used in the gateway.
-
get_client
(self)¶ - Returns
Client instance.
-
get_options
(self)¶ - Returns
the options being used.
-
disconnect
(self)¶ Clean up and disconnect this Gateway connection
-
async
get_network
(self, network_name, requestor)¶ Returns an object representing a network :param Name of the channel :param requestor: User role who issue the request :return: Network instance
-