UNPKG

@mdf.js/service-registry

Version:

MMS - API - Service Registry

37 lines 1.35 kB
/** * Copyright 2024 Mytra Control S.L. All rights reserved. * * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file * or at https://opensource.org/licenses/MIT. */ import express from 'express'; import { Aggregator } from '../Aggregator'; /** Router class */ export declare class Router { private readonly aggregator; private readonly path; private readonly _router; /** Model class instance */ private readonly _model; /** Service class instance */ private readonly _service; /** Controller class instance */ private readonly _controller; /** Validator class instance */ private readonly _validator; /** * Create a new instance of the Router class * @param aggregator - Aggregator used by this component * @param isCluster - indicates that the instance of this metrics service is running in a cluster * @param path - prefix path for all the routes */ constructor(aggregator: Aggregator, isCluster?: boolean, path?: string); /** * Perform the instantiation of the routes in an express router * @param path - prefix path for all the routers */ private buildRoutes; /** Express router for health REST API component*/ get router(): express.Router; } //# sourceMappingURL=metrics.router.d.ts.map