new RunnerRouter(defaultRunner)
A multi-domain drop in replacement for anywhere we use origin-router.Router
. By creating multiple dataparty ServiceRunner
s you can manage multiple parties and multiple services and merge them into either a single combined service. Or host them as multiple seperate domains. Essentially, this allows the ServiceHost
to be multi-tenant.
Parameters:
Name | Type | Description |
---|---|---|
defaultRunner | module:Service. | The default runner to use if no others match. Required |
- Source
Methods
(static) addRunner()
Parameters:
Name | Type | Description |
---|---|---|
options.domain | string | |
options.runner | module:Service. |
- Source
(static) getRunnerByDomain(domain) → {module:Service.ServiceRunner}
Parameters:
Name | Type | Description |
---|---|---|
domain | string |
- Source
Returns:
(static) getRunnerByHostIdentity(identity) → {module:Service.ServiceRunner}
Parameters:
Name | Type | Description |
---|---|---|
identity | dataparty_crypto. |
- Source
Returns:
(async, static) start()
- Source
Returns: