0.7.0 • Published 2 years ago
cloud-function-engine v0.7.0
cloud-function
云函数引擎,在
laf
中使用,使用方法请参考laf
主要特点:
- 支持定时器触发器
- 支持事件触发器
- 支持在云函数中调用云函数
- 支持 Typescript & Javascript
- 支持扩展,自定义触发器的调度器
- 支持自定义依赖的加载方式
Usage
const {
CloudFunction,
TriggerScheduler,
CloudFunctionStruct,
FunctionContext,
} = require("cloud-function");
const data = fetchFunctionData(); // data 为 `CloudFunctionStruct`
const func = new CloudFunction(data);
const ctx = {}; // ctx 为 FunctionContext 结构
func.invoke(ctx).then((result) => console.log(result));
0.7.0
2 years ago
0.6.10
3 years ago
0.6.6
3 years ago
0.6.9
3 years ago
0.6.8
3 years ago
0.6.0-alpha.3
3 years ago
0.6.0-alpha.0
3 years ago
0.5.4-alpha.0
3 years ago
0.4.3
3 years ago
0.4.0
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago