... NetGet Documentation NetGet

Class

NetGet

NetGet(config)

Represents the main entry point for NetGet functionalities. Handles the instantiation of gateways and configuration loading. Entry point for the NetGet service as a node module. Exports the NetGet class. Example: const netget = new NetGet(); const gateway = netget.Gateway({ host: 'localhost', port: 3000 }); gateway.listen();

Constructor

# new NetGet(config)

Constructs the NetGet service, initializing any necessary base configurations.

Parameters:
Name Type Description
config Object

The configuration object for the NetGet service.

View Source src/netget.js, line 13

Methods

# Gateway(config) → {Gateway}

Creates a Gateway instance with specified configuration.

Parameters:
Name Type Description
config Object

Configuration options for the Gateway.

View Source src/netget.js, line 27

An instance of the Gateway configured with the provided options.

Gateway

# static loadDomainConfig(domainConfigPath) → {Object|null}

Loads and parses the domain configuration from a specified file.

Parameters:
Name Type Description
domainConfigPath string

The path to the domain configuration file.

View Source src/netget.js, line 36

The parsed domain configuration object or null if an error occurs.

Object | null

NetGet(config)

Represents the main entry point for NetGet functionalities. Handles the instantiation of gateways and configuration loading. Entry point for the NetGet service as a node module. Exports the NetGet class. Example: const netget = new NetGet(); const gateway = netget.Gateway({ host: 'localhost', port: 3000 }); gateway.listen();

Constructor

# new NetGet(config)

Constructs the NetGet service, initializing any necessary base configurations.

Parameters:
Name Type Description
config Object

The configuration object for the NetGet service.

View Source src/netget.js, line 13

Methods

# Gateway(config) → {Gateway}

Creates a Gateway instance with specified configuration.

Parameters:
Name Type Description
config Object

Configuration options for the Gateway.

View Source src/netget.js, line 27

An instance of the Gateway configured with the provided options.

Gateway

# static loadDomainConfig(domainConfigPath) → {Object|null}

Loads and parses the domain configuration from a specified file.

Parameters:
Name Type Description
domainConfigPath string

The path to the domain configuration file.

View Source src/netget.js, line 36

The parsed domain configuration object or null if an error occurs.

Object | null

Witness our Seal.
neurons.me