mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-22 17:06:42 +00:00
72 lines
1.1 KiB
JavaScript
72 lines
1.1 KiB
JavaScript
"use strict";
|
|
const project = require('./package.json');
|
|
const packageName = project.name;
|
|
const packageLoader = require('@steedos/service-meteor-package-loader');
|
|
const init = require('./lib').init;
|
|
/**
|
|
* @typedef {import('moleculer').Context} Context Moleculer's Context
|
|
* 软件包服务启动后也需要抛出事件。
|
|
*/
|
|
module.exports = {
|
|
name: packageName,
|
|
namespace: "steedos",
|
|
mixins: [packageLoader],
|
|
/**
|
|
* Settings
|
|
*/
|
|
settings: {
|
|
packageInfo: {
|
|
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Dependencies
|
|
*/
|
|
dependencies: [],
|
|
|
|
/**
|
|
* Actions
|
|
*/
|
|
actions: {
|
|
|
|
},
|
|
|
|
/**
|
|
* Events
|
|
*/
|
|
events: {
|
|
|
|
},
|
|
|
|
/**
|
|
* Methods
|
|
*/
|
|
methods: {
|
|
init: function (context) {
|
|
init(context);
|
|
}
|
|
},
|
|
|
|
/**
|
|
* Service created lifecycle event handler
|
|
*/
|
|
async created() {
|
|
|
|
},
|
|
|
|
/**
|
|
* Service started lifecycle event handler
|
|
*/
|
|
async started() {
|
|
|
|
},
|
|
|
|
/**
|
|
* Service stopped lifecycle event handler
|
|
*/
|
|
async stopped() {
|
|
|
|
}
|
|
};
|