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
6bf85b33
Commit
6bf85b33
authored
May 30, 2017
by
project
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
c903d30c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
readme.txt
readme.txt
+5
-0
service-storage.js
storage-service/ws/v0.1/service-storage.js
+11
-4
No files found.
readme.txt
0 → 100644
View file @
6bf85b33
How to build xml2json
- install C++11 Compiler
- scl enable devtoolset-2 bash
- npm install
(for centos : http://hiltmon.com/blog/2015/08/09/c-plus-plus-11-on-centos-6-dot-6/)
\ No newline at end of file
storage-service/ws/v0.1/service-storage.js
View file @
6bf85b33
...
@@ -102,8 +102,11 @@ router.get('/:id/objects',function (req, res) {
...
@@ -102,8 +102,11 @@ router.get('/:id/objects',function (req, res) {
var
cont
=
true
;
var
cont
=
true
;
if
(
idx
>
rec_count
){
cont
=
false
;}
if
(
idx
>
rec_count
){
cont
=
false
;}
rd
.
moveTo
(
idx
);
rd
.
moveTo
(
idx
);
//start stream response
res
.
type
(
'application/json'
);
res
.
send
(
'['
);
async
.
whilst
(
async
.
whilst
(
function
()
{
return
cont
;
},
function
()
{
return
cont
;
},
function
(
callback
){
function
(
callback
){
...
@@ -112,17 +115,21 @@ router.get('/:id/objects',function (req, res) {
...
@@ -112,17 +115,21 @@ router.get('/:id/objects',function (req, res) {
if
(
!
obj
){
if
(
!
obj
){
cont
=
false
;
cont
=
false
;
}
else
{
}
else
{
//console.log
(obj);
var
objout
=
obj_out
(
obj
);
obj_return
.
push
(
obj_out
(
obj
)
);
res
.
send
(
objout
);
if
(
limit
>
0
&&
idx
>=
from_seq
+
limit
){
if
(
limit
>
0
&&
idx
>=
from_seq
+
limit
){
cont
=
false
;
cont
=
false
;
}
else
{
res
.
send
(
','
);
}
}
}
}
callback
();
callback
();
});
});
},
function
(
err
){
},
function
(
err
){
res
.
send
(
']'
);
bss
.
close
(
function
(
err
){
bss
.
close
(
function
(
err
){
respHelper
.
responseOK
(
obj_return
);
res
.
status
(
200
).
end
();
//respHelper.responseOK(obj_return);
});
});
});
});
...
...
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