Namespace: ServiceType

services.ServiceType

The collection of built-in service types of services.js module.
Since:
  • 0.1.0
Source:

Members

(static) ASYNC_FUNCTION

Service type that enables delivery of asynchronous requests to the target JavaScript function. Each service of this type should have the following properties specified in its service config object (the second argument of the service registration register function):

- (string) type - set to services.ServiceType.ASYNC_FUNCTION
- (Function) func - target function to which to deliver the package (of requests)

Source:

(static) FUNCTION

Service type that enables delivery of requests to the target JavaScript function. Each service of this type should have the following properties specified in its service config object (the second argument of the service registration register function):

- (string) type - set to services.ServiceType.FUNCTION
- (Function) func - target function to which to deliver the package (of requests)

Source:

(static) WORKER

Service type that enables delivery of requests to the target worker thread. Each service of this type should have the following properties specified in its service config object (the second argument of the service registration register function):

- (string) type - set to services.ServiceType.WORKER
- (Worker) worker - target worker (in case of using dedicated worker) or target worker's port (in case of using shared worker) to which to deliver the package (of requests)

Source: