summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-02-28 16:11:57 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-02-28 16:11:57 +0300
commitfeaa5065f900a9c031ca7d66d80957040e2ee99f (patch)
treec6dbaf2861364725df1c54a8ba3423ca273107e0 /src
parent142869948c40900569f339a2177e95a3be3bbdfb (diff)
refactor: moved some files to lib/
Diffstat (limited to 'src')
-rwxr-xr-xsrc/jobd-master.js8
-rwxr-xr-xsrc/jobd.js10
-rw-r--r--src/lib/config.js (renamed from src/config.js)0
-rw-r--r--src/lib/db.js (renamed from src/db.js)0
-rw-r--r--src/lib/logger.js (renamed from src/logger.js)2
-rw-r--r--src/lib/server.js (renamed from src/server.js)0
-rw-r--r--src/lib/util.js (renamed from src/util.js)0
-rw-r--r--src/lib/worker.js (renamed from src/worker.js)0
-rw-r--r--src/lib/workers-list.js (renamed from src/workers-list.js)0
9 files changed, 10 insertions, 10 deletions
diff --git a/src/jobd-master.js b/src/jobd-master.js
index 6604e05..608750d 100755
--- a/src/jobd-master.js
+++ b/src/jobd-master.js
@@ -1,9 +1,9 @@
#!/usr/bin/env node
const minimist = require('minimist')
-const loggerModule = require('./logger')
-const config = require('./config')
-const {Server, ResponseMessage, RequestMessage} = require('./server')
-const WorkersList = require('./workers-list')
+const loggerModule = require('./lib/logger')
+const config = require('./lib/config')
+const {Server, ResponseMessage, RequestMessage} = require('./lib/server')
+const WorkersList = require('./lib/workers-list')
/**
* @type {Logger}
diff --git a/src/jobd.js b/src/jobd.js
index 63f8716..a175b63 100755
--- a/src/jobd.js
+++ b/src/jobd.js
@@ -1,10 +1,10 @@
#!/usr/bin/env node
const minimist = require('minimist')
-const loggerModule = require('./logger')
-const config = require('./config')
-const db = require('./db')
-const {Server, Connection, RequestMessage, ResponseMessage} = require('./server')
-const {Worker, STATUS_MANUAL} = require('./worker')
+const loggerModule = require('./lib/logger')
+const config = require('./lib/config')
+const db = require('./lib/db')
+const {Server, Connection, RequestMessage, ResponseMessage} = require('./lib/server')
+const {Worker, STATUS_MANUAL} = require('./lib/worker')
/**
* @type {Worker}
diff --git a/src/config.js b/src/lib/config.js
index a59615e..a59615e 100644
--- a/src/config.js
+++ b/src/lib/config.js
diff --git a/src/db.js b/src/lib/db.js
index 7874a92..7874a92 100644
--- a/src/db.js
+++ b/src/lib/db.js
diff --git a/src/logger.js b/src/lib/logger.js
index 22dd679..260ba41 100644
--- a/src/logger.js
+++ b/src/lib/logger.js
@@ -1,7 +1,7 @@
const log4js = require('log4js')
const fs = require('fs/promises')
const fsConstants = require('fs').constants
-const util = require('util')
+const util = require('src/lib/util')
module.exports = {
/**
diff --git a/src/server.js b/src/lib/server.js
index 08eadca..08eadca 100644
--- a/src/server.js
+++ b/src/lib/server.js
diff --git a/src/util.js b/src/lib/util.js
index 6de07e5..6de07e5 100644
--- a/src/util.js
+++ b/src/lib/util.js
diff --git a/src/worker.js b/src/lib/worker.js
index b4beeab..b4beeab 100644
--- a/src/worker.js
+++ b/src/lib/worker.js
diff --git a/src/workers-list.js b/src/lib/workers-list.js
index 620f711..620f711 100644
--- a/src/workers-list.js
+++ b/src/lib/workers-list.js