moleculer-api
Version:
A dynamic API Gateway for MoleculerJS which updates REST endpoints and aggregated GraphQL schema, access control policy for each action calls from metadata of remote services schema without restart or deployment.
17 lines (16 loc) • 710 B
TypeScript
import { RecursivePartial } from "../../interface";
import { ServerApplicationComponentModules } from "../application";
import { listeningURI, ServerProtocol, ServerProtocolProps } from "./protocol";
export declare type ServerHTTPProtocolOptions = {
port: number;
hostname: string;
};
export declare class ServerHTTPProtocol extends ServerProtocol {
static readonly key = "http";
static readonly autoLoadOptions: ServerHTTPProtocolOptions;
private readonly opts;
private server?;
constructor(props: ServerProtocolProps, opts?: RecursivePartial<ServerHTTPProtocolOptions>);
start(modules: ServerApplicationComponentModules): Promise<listeningURI[]>;
stop(): Promise<void>;
}