-
Notifications
You must be signed in to change notification settings - Fork 2
/
methods.js
67 lines (66 loc) · 1.61 KB
/
methods.js
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const { isRitual, isRoot, isShard, isForward } = require('ssb-dark-crystal-schema')
const isRequest = require('./isRequest')
const isReply = require('./isReply')
module.exports = {
recover: {
async: {
recombine: require('./recover/async/recombine'),
reply: require('./recover/async/reply'),
request: require('./recover/async/request')
},
pull: {
requests: require('./recover/pull/requests'),
replies: require('./recover/pull/replies')
}
},
root: {
async: {
publish: require('./root/async/publish'),
get: require('./root/async/getAsync')
},
pull: {
mine: require('./root/pull/mine'),
backlinks: require('./root/pull/backlinks')
}
},
ritual: {
async: {
publish: require('./ritual/async/publish')
},
pull: {
byRoot: require('./ritual/pull/by-root')
}
},
shard: {
async: {
publishAll: require('./shard/async/publish-all')
},
pull: {
byRoot: require('./shard/pull/by-root'),
fromOthers: require('./shard/pull/from-others')
}
},
share: {
async: {
share: require('./share/async/share')
}
},
forward: {
async: {
publish: require('./forward/async/publish')
},
pull: {
fromOthers: require('./forward/pull/from-others'),
toOthers: require('./forward/pull/to-others'),
fromOthersByRoot: require('./forward/pull/from-others-by-root')
}
},
sync: {
isRitual: () => isRitual,
isRoot: () => isRoot,
isShard: () => isShard,
isForward: () => isForward,
isRequest: () => isRequest,
isReply: () => isReply
}
}