-
Notifications
You must be signed in to change notification settings - Fork 0
/
sequence-diagram.uml
58 lines (48 loc) · 1.15 KB
/
sequence-diagram.uml
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
title IPFS-Proxy
participant Client
participant IPFS-Proxy
database sqlite
database IPFS
participant Deno-land
alt known in IPFS
Client->IPFS-Proxy:requests package
activate IPFS-Proxy
IPFS-Proxy->IPFS-Proxy:lookup CID
activate IPFS-Proxy
IPFS-Proxy->sqlite:lookup CID
IPFS-Proxy<--sqlite:CID
deactivate IPFS-Proxy
deactivate sqlite
IPFS-Proxy->IPFS-Proxy:get from IPFS
activate IPFS-Proxy
IPFS-Proxy->IPFS:lookup package
IPFS-Proxy<--IPFS:package
deactivate IPFS-Proxy
Client<--IPFS-Proxy:package
deactivate IPFS-Proxy
end
alt unknown in IPFS
Client->IPFS-Proxy:requests package
activate IPFS-Proxy
IPFS-Proxy->IPFS-Proxy:lookup CID
activate IPFS-Proxy
IPFS-Proxy->sqlite:lookup CID
IPFS-Proxy<--sqlite:no CID
deactivate IPFS-Proxy
IPFS-Proxy->IPFS-Proxy:request package Deno-land
activate IPFS-Proxy
deactivate IPFS-Proxy
deactivate sqlite
activate IPFS-Proxy
IPFS-Proxy->Deno-land: request package
IPFS-Proxy<--Deno-land:package
deactivate IPFS-Proxy
IPFS-Proxy->IPFS-Proxy:add to IPFS
activate IPFS-Proxy
IPFS-Proxy->IPFS:add package
IPFS-Proxy<--IPFS:CID
IPFS-Proxy->sqlite:store CID
deactivate IPFS-Proxy
Client<--IPFS-Proxy:package
deactivate IPFS-Proxy
end