UNPKG

@gluestack-v2/glue-plugin-service-gateway

Version:

Gluestack V2 service Gateway Plugin

74 lines (62 loc) 1.42 kB
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const template = () => `/** * @typedef {import('moleculer').ServiceSchema} ServiceSchema Moleculer's Service Schema * @typedef {import('moleculer').Context} Context Moleculer's Context */ /** @type {ServiceSchema} */ const Cron = require("moleculer-cron"); const axios = require("axios"); module.exports = { name: "crons", mixins: [Cron], crons: [ // **---Add Cron Jobs Here---** ], /** * Settings */ settings: {}, /** * Dependencies */ dependencies: [], /** * Actions */ actions: { // **---Add Cron Actions Here---** }, /** * Events */ events: {}, /** * Methods */ methods: {}, /** * Service created lifecycle event handler */ created() {}, /** * Service started lifecycle event handler */ async started() {}, /** * Service stopped lifecycle event handler */ async stopped() {}, }; `; exports.default = template; });