rest-vir - v1.0.0
    Preparing search index...

    Function startService

    • Starts the given ServiceImplementation inside of a backend Fastify server.

      To attach the service endpoint handlers to an existing Fastify server, use attachService.

      Parameters

      • service: Readonly<
            SelectFrom<
                GenericServiceImplementation,
                {
                    createContext: true;
                    endpoints: true;
                    logger: true;
                    postHook: true;
                    requiredClientOrigin: true;
                    serviceName: true;
                    serviceOrigin: true;
                    webSockets: true;
                },
            >,
        >
      • userOptions: Readonly<StartServiceUserOptions> = {}
      • fastifyPlugins: readonly [plugin: FastifyPluginCallback, options?: any][] = []

      Returns Promise<StartServiceOutput>