Optional
clusterThe ClusterManager
for all the spawned server workers. This is populated when the server is
run with a multiple threads (when options.workerCount
> 1). It will only be populated for
the primary thread.
The host that the server was attached to. (This is simply passed directly from the user options, merged with the default.)
A function that will kill the service even if it's using multiple workers.
The port that the server actually started on. This depends on the options given to startService.
Optional
serverThe instantiated and running fastify
instance.
This is populated when the server is run on only a single thread (when options.workerCount
is 1).
Optional
workerThe WorkerRunner
for the current worker. This is populated when the server is run with a
multiple threads (when options.workerCount
> 1). It will only be populated for non-primary
threads.
Output of startService.
Package
@rest-vir/run-service