@x5e/gink
Version:
an eventually consistent database
34 lines (33 loc) • 960 B
TypeScript
import { Store } from "./Store";
import { Database } from "./Database";
import { REPLServer } from "node:repl";
/**
Intended to manage server side running of Gink.
Basically it takes some settings in the form of
arguments plus a list of peers to
connect to then starts up the Gink Instance,
or Gink Server if port listening is specified.
*/
export declare class CommandLineInterface {
targets: string[];
store?: Store;
instance?: Database;
replServer?: REPLServer;
authToken?: string;
reconnectOnClose: boolean;
logger: (_: string) => void;
constructor(args: {
connect_to?: string[];
listen_on?: string;
data_file?: string;
identity?: string;
reconnect?: boolean;
static_path?: string;
auth_token?: string;
ssl_cert?: string;
ssl_key?: string;
verbose?: boolean;
exclusive?: boolean;
});
run(): Promise<void>;
}