UNPKG

@mdf.js/service-registry

Version:

MMS - API - Service Registry

25 lines 717 B
"use strict"; /** * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; /** Model class */ class Model { /** * Create an instance of model class * @param aggregator - registry instance */ constructor(aggregator) { this.aggregator = aggregator; } /** Return the state of all the providers */ health() { return Promise.resolve(this.aggregator.health); } } exports.Model = Model; //# sourceMappingURL=health.model.js.map