@imqueue/rpc
Version:
RPC-like client-service implementation over messaging queue
22 lines (21 loc) • 685 B
TypeScript
import { ILogger } from '@imqueue/core';
export declare const SIGNALS: string[];
export declare const IMQ_TMP_DIR: string;
export declare const IMQ_PID_DIR: string;
/**
* Returns increment-based process identifier for a given name
*
* @param {string} name - name of a service to create pid file for
* @param {string} path - directory to
* @returns {number}
*/
export declare function pid(name: string, path?: string): number;
/**
* Removes pid file for a given name and id
*
* @param {string} name
* @param {number} id
* @param {ILogger} logger
* @param {string} [path]
*/
export declare function forgetPid(name: string, id: number, logger: ILogger, path?: string): void;