-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplanarium.js
More file actions
49 lines (49 loc) · 1.61 KB
/
Copy pathplanarium.js
File metadata and controls
49 lines (49 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var bcode = require('bcode')
module.exports = {
planarium: '0.0.1',
query: {
web: {
"v": 3,
"q": {
"find": {},
"limit": 1000
},
"r": {
"f": "[.[] | { protocols: .protocols, transaction: .txid, block: .blk, sender: .sender , key: .key, value: .value, type: .type, seq: .seq, \"URI over https\": (if .type == \"c\" then \"https://data.bitdb.network/1KuUr2pSJDao97XM8Jsq8zwLS6W1WtFfLg/c/\\(.value)\" elif .type == \"txt\" then null else \"https://b.bitdb.network#\\(.value)\" end)}]"
}
},
api: {
timeout: 50000,
sort: {
"blk.i": -1,
"seq": -1,
"txid": -1
},
limit: 10000,
concurrency: {
aggregate: 7
},
},
log: true
},
socket: {
web: {
"v": 3,
"q": {
"find": {},
"limit": 1000
},
"r": {
"f": "[.[] | { protocols: .protocols, transaction: .txid, block: .blk, sender: .sender , key: .key, value: .value, type: .type, seq: .seq, \"URI over https\": (if .type == \"c\" then \"https://data.bitdb.network/1KuUr2pSJDao97XM8Jsq8zwLS6W1WtFfLg/c/\\(.value)\" elif .type == \"txt\" then null else \"https://b.bitdb.network#\\(.value)\" end)}]"
}
},
api: {},
topics: ["c", "u"]
},
transform: {
request: bcode.encode,
response: bcode.decode
},
url: "mongodb://localhost:27020",
port: 3000,
}