ah-server:轻量可扩展的 web server

时间:2021-04-17 17:26:27
【文件属性】:
文件名称:ah-server:轻量可扩展的 web server
文件大小:14KB
文件格式:ZIP
更新时间:2021-04-17 17:26:27
TypeScript ah-server 轻量可扩展的 web server 基于 koa 类 体验 app、service、scheduler、context 模块 TL;DR import { App, Service, IService, Config } from 'ah-helper'; class AService extends Service { foo() { this.service.b.bar(); } } class BService extends Service { bar() { this.service.a.foo(); } } class DemoApp extends App { service: IService = { a: new AService(this), b: new BService(this), };
【文件预览】:
ah-server-master
----package.json(914B)
----.prettierrc(215B)
----src()
--------Event.ts(173B)
--------App.ts(6KB)
--------Config.ts(414B)
--------Controller.ts(583B)
--------Scheduler.ts(281B)
--------Service.ts(340B)
--------index.ts(514B)
--------util.ts(1KB)
--------error.ts(759B)
----tsconfig.json(246B)
----.gitignore(2KB)
----.release-it.json(140B)
----README.md(582B)
----__test__()
--------run.ts(350B)
--------DemoApp.ts(1KB)
--------ah-server_key.txt(2KB)
--------index.test.ts(1KB)
--------ah-server_ssl.crt(1KB)
--------tsconfig.json(56B)
--------__snapshots__()
----tsconfig.build.json(82B)

网友评论