2019-01-11 19:33:44 +00:00
|
|
|
export interface SendableConnection {
|
|
|
|
send(data: Buffer | Uint8Array): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ReadWriteConnection extends SendableConnection {
|
|
|
|
onMessage(cb: (data: Uint8Array | Buffer) => void): void;
|
|
|
|
onClose(cb: () => void): void;
|
|
|
|
close(): void;
|
|
|
|
}
|
2019-01-15 18:36:09 +00:00
|
|
|
|
|
|
|
export enum OperatingSystem {
|
|
|
|
Windows,
|
|
|
|
Linux,
|
|
|
|
Mac,
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface InitData {
|
|
|
|
readonly os: OperatingSystem;
|
|
|
|
readonly dataDirectory: string;
|
|
|
|
readonly workingDirectory: string;
|
|
|
|
readonly homeDirectory: string;
|
|
|
|
readonly tmpDirectory: string;
|
2019-01-28 17:14:06 +00:00
|
|
|
readonly shell: string;
|
2019-01-19 00:04:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ISharedProcessData {
|
|
|
|
readonly socketPath: string;
|
2019-01-28 17:14:06 +00:00
|
|
|
readonly logPath: string;
|
2019-01-19 00:04:24 +00:00
|
|
|
}
|