@voicenter-team/mysql-dynamic-cluster
Version:
Galera cluster with implementation of dynamic choose mysql server for queries, caching, hashing it and metrics
18 lines (17 loc) • 575 B
TypeScript
import { ClusterEvent } from "../types/PoolInterfaces";
declare const Events: {
/**
* Connect to the event
* @param event event name
* @param callback function what will be called after emit
*/
on(event: ClusterEvent, callback: (...args: any[]) => void): void;
/**
* Emit the event. Call all functions what connected to the event
* @param event event name
* @param args arguments what will be passed to the callback function
* @private
*/
emit(event: ClusterEvent, ...args: any[]): void;
};
export default Events;