UNPKG

@voicenter-team/mysql-dynamic-cluster

Version:

Galera cluster with implementation of dynamic choose mysql server for queries, caching, hashing it and metrics

15 lines (14 loc) 470 B
/** * Created by Bohdan on Apr, 2022 */ import { GaleraCluster } from "../cluster/GaleraCluster"; import { IServiceMetricsSettings } from "../types/MetricsInterfaces"; export default class ServiceNames { private _serviceIds; private _cluster; private readonly _database; private readonly _table; constructor(cluster: GaleraCluster, options: IServiceMetricsSettings); getID(serviceName: string): Promise<number>; private _receiveIDbyName; }