@mathrunet/masamune
Version:
Manages packages for the server portion (NodeJS) of the Masamune framework.
38 lines • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FunctionsBase = void 0;
/**
* Define Function data for FirebaseFunctions.
*
* Write code to generate FirebaseFunctions at `build`.
*
* FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
*
* `build`にてFirebaseFunctionsを生成するためのコードを記述します。
*/
class FunctionsBase {
/**
* Define Function data for FirebaseFunctions.
*
* Write code to generate FirebaseFunctions at `build`.
*
* FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
*
* `build`にてFirebaseFunctionsを生成するためのコードを記述します。
*/
constructor({ id, func, data = {}, options, }) {
var _a, _b;
this.id = (_b = (_a = options === null || options === void 0 ? void 0 : options.name) !== null && _a !== void 0 ? _a : id) !== null && _b !== void 0 ? _b : "";
this.func = func;
this.data = data !== null && data !== void 0 ? data : {};
this.options = options !== null && options !== void 0 ? options : {
timeoutSeconds: 60,
memory: "256MiB",
minInstances: 0,
concurrency: 80,
maxInstances: 100,
};
}
}
exports.FunctionsBase = FunctionsBase;
//# sourceMappingURL=functions_base.js.map