Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
41d90907
Commit
41d90907
authored
Sep 19, 2019
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipc fixed
parent
37d73b68
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
default.json
conf/env/default.json
+4
-0
perform.js
plugins/do/do-storage/perform.js
+10
-7
main.js
storage-service/main.js
+6
-1
No files found.
conf/env/default.json
0 → 100644
View file @
41d90907
[
{
"env"
:
"BSCONFIG_AMQP_TYPE"
,
"conf"
:
"amqp.type"
},
{
"env"
:
"BSCONFIG_AMQP_URL"
,
"conf"
:
"amqp.url"
}
]
\ No newline at end of file
plugins/do/do-storage/perform.js
View file @
41d90907
...
@@ -24,14 +24,17 @@ function perform_function(context,request,response){
...
@@ -24,14 +24,17 @@ function perform_function(context,request,response){
var
amqp_cfg
=
ctx
.
config
.
amqp
;
var
amqp_cfg
=
ctx
.
config
.
amqp
;
var
storage_name
=
param
.
storage_name
;
var
storage_name
=
param
.
storage_name
;
var
caller
=
storagecaller
;
var
caller
=
new
RPCCaller
({
url
:
amqp_cfg
.
url
,
name
:
'storage_request'
});
if
(
param
.
channel
!=
'ipc'
){
//
if(param.channel!='ipc'){
caller
=
new
RPCCaller
({
//
caller = new RPCCaller({
url
:
amqp_cfg
.
url
,
//
url : amqp_cfg.url,
name
:
'storage_request'
//
name :'storage_request'
});
//
});
}
//
}
var
dc_meta
=
{
var
dc_meta
=
{
...
...
storage-service/main.js
View file @
41d90907
var
ctx
=
require
(
'../context'
);
var
ctx
=
require
(
'../context'
);
var
ConnCtx
=
ctx
.
getLib
(
'lib/conn/connection-context'
);
var
ConnCtx
=
ctx
.
getLib
(
'lib/conn/connection-context'
);
var
rpcserver
=
ctx
.
getLib
(
'lib/amqp/rpcserver'
);
var
rpcserver
=
ctx
.
getLib
(
'lib/amqp/rpcserver'
);
var
RPCCaller
=
ctx
.
getLib
(
'lib/amqp/rpccaller'
);
var
SSServer
=
ctx
.
getLib
(
'lib/axon/rpcserver'
);
var
SSServer
=
ctx
.
getLib
(
'lib/axon/rpcserver'
);
var
Db
=
ctx
.
getLib
(
'storage-service/lib/db'
);
var
Db
=
ctx
.
getLib
(
'storage-service/lib/db'
);
var
WorkerPool
=
ctx
.
getLib
(
'storage-service/lib/worker_pool'
);
var
WorkerPool
=
ctx
.
getLib
(
'storage-service/lib/worker_pool'
);
...
@@ -145,7 +146,11 @@ SS.prototype.http_start = function()
...
@@ -145,7 +146,11 @@ SS.prototype.http_start = function()
}));
}));
var
context
=
ctx
.
getLib
(
'lib/ws/http-context'
);
var
context
=
ctx
.
getLib
(
'lib/ws/http-context'
);
this
.
storagecaller
=
new
SSCaller
({
'url'
:
SS_URL
});
//this.storagecaller = new SSCaller({'url':SS_URL});
this
.
storagecaller
=
new
RPCCaller
({
url
:
amqp_cfg
.
url
,
name
:
'storage_request'
});
this
.
acl_validator
=
ACLValidator
.
create
(
auth_cfg
);
this
.
acl_validator
=
ACLValidator
.
create
(
auth_cfg
);
this
.
worker_pool
.
initWorker
();
this
.
worker_pool
.
initWorker
();
app
.
use
(
context
.
middleware
({
app
.
use
(
context
.
middleware
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment