Commit 8cb9af878eeb8e5cb1514ea2a3d9cc4bfb5c7433
1 parent
5d7389c497
Exists in
master
vre.start()
Showing 2 changed files with 30 additions and 1 deletions Inline Diff
package.json
1 | { | 1 | { |
2 | "name": "sate24-to-vre", | 2 | "name": "sate24-to-vre", |
3 | "version": "0.0.1", | 3 | "version": "0.0.1", |
4 | "description": "ST24 to VRE", | 4 | "description": "ST24 to VRE", |
5 | "main": "index.js", | 5 | "main": "index.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "test": "mocha" | 7 | "test": "mocha" |
8 | }, | 8 | }, |
9 | "repository": { | 9 | "repository": { |
10 | "type": "git", | 10 | "type": "git", |
11 | "url": "git@gitlab.kodesumber.com:reload97/sate24-to-vre.git" | 11 | "url": "git@gitlab.kodesumber.com:reload97/sate24-to-vre.git" |
12 | }, | 12 | }, |
13 | "keywords": [ | 13 | "keywords": [ |
14 | "st24", | 14 | "st24", |
15 | "reload97", | 15 | "reload97", |
16 | "r97", | 16 | "r97", |
17 | "ppob", | 17 | "ppob", |
18 | "vre", | 18 | "vre", |
19 | "m2m", | 19 | "m2m", |
20 | "h2h" | 20 | "h2h" |
21 | ], | 21 | ], |
22 | "author": "Adhidarma Hadiwinoto <gua@adhisimon.org>", | 22 | "author": "Adhidarma Hadiwinoto <gua@adhisimon.org>", |
23 | "license": "BSD", | 23 | "license": "BSD", |
24 | "dependencies": { | 24 | "dependencies": { |
25 | "fs": "0.0.2", | 25 | "fs": "0.0.2", |
26 | "ini": "~1.3.4", | 26 | "ini": "~1.3.4", |
27 | "sate24": "git+http://git@gitlab.kodesumber.com/reload97/node-sate24.git", | 27 | "sate24": "git+http://git@gitlab.kodesumber.com/reload97/node-sate24.git", |
28 | "sate24-expresso": "git+http://gitlab.kodesumber.com/reload97/sate24-expresso.git", | 28 | "sate24-expresso": "git+http://gitlab.kodesumber.com/reload97/sate24-expresso.git", |
29 | "xmlrpc": "~1.3.1" | 29 | "xmlrpc": "~1.3.1", |
30 | "winston": "~2.1.1" | ||
30 | } | 31 | } |
31 | } | 32 | } |
32 | 33 |
vre.js
1 | var xmlrpc = require('xmlrpc'); | 1 | var xmlrpc = require('xmlrpc'); |
2 | |||
3 | var config; | ||
4 | var callbackReport; | ||
5 | var aaa; | ||
6 | var logger; | ||
7 | |||
8 | function start(_config, _callbackReport, options) { | ||
9 | config = _config; | ||
10 | callbackReport = _callbackReport; | ||
11 | |||
12 | if (options && options.aaa) { | ||
13 | aaa = options.aaa; | ||
14 | } | ||
15 | |||
16 | if (options && options.logger) { | ||
17 | logger = options.logger; | ||
18 | } else { | ||
19 | logger = new winston.Logger({ | ||
20 | transports: [ | ||
21 | new (winston.transports.Console)() | ||
22 | ] | ||
23 | }); | ||
24 | } | ||
25 | |||
26 | createServer(); | ||
27 | } | ||
28 | |||
29 | exports.start = start; | ||
2 | 30 |