node-universe
Version:
基于 Nodejs 环境的一款微服务框架,原理来自于宇宙中的恒星,行星,卫星等系统。
26 lines (25 loc) • 777 B
TypeScript
import Star from '../../../lib/star';
import Registry from '../registry';
import Node from '../node';
import { ActionSchema } from '../../../typings/context';
import { EventSchema } from '../../../typings/context/event';
import Service from '../../../lib/star/service';
import ServiceItem from '../service-item';
export default class Endpoint {
registry: Registry;
star: Star;
id: string;
node: Node;
local: boolean;
state: boolean;
action: ActionSchema | null;
event: EventSchema | null;
service: ServiceItem | null;
name: string;
constructor(registry: Registry, star: Star, node: Node, service?: Service, event?: any);
get isAvailable(): boolean;
destory(): void;
update(data: any): void;
}
update(data: any): void;
}