UNPKG

@mathrunet/masamune

Version:

Manages packages for the server portion (NodeJS) of the Masamune framework.

63 lines 1.81 kB
"use strict"; 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, }) { this.id = options?.name ?? id ?? ""; this.func = func; this.data = data ?? {}; this.options = options ?? { timeoutSeconds: 60, memory: "256MiB", minInstances: 0, concurrency: 80, maxInstances: 100, }; } /** * @param id * Describe the method names used in Functions. * * Functionsで利用されるメソッド名を記述します。 */ id; /** * @param func * Specify the actual contents of the process. * * 実際の処理の中身を指定します。 */ func; /** * Specify the data to be passed to the process. * * 処理に渡すデータを指定します。 */ data; /** * Specify processing options. * * 処理のオプションを指定します。 */ options; } exports.FunctionsBase = FunctionsBase; //# sourceMappingURL=functions_base.js.map