UNPKG

@x5e/gink

Version:

an eventually consistent database

35 lines (34 loc) 1.01 kB
/// <reference types="node" /> import { RoutingServer } from "./RoutingServer"; 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; routingServer?: RoutingServer; replServer?: REPLServer; authToken?: string; retryOnDisconnect: boolean; constructor(args: { connect_to?: string[]; listen_on?: string; data_root?: string; data_file?: string; identity?: string; reconnect?: boolean; static_path?: string; auth_token?: string; ssl_cert?: string; ssl_key?: string; }); run(): Promise<void>; }