Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-graphsync
Commits
aa3e3d8c
Commit
aa3e3d8c
authored
Jan 31, 2019
by
hannahhoward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(diagram): update with latest interfaces
parent
e9863c55
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
13 deletions
+35
-13
docs/GraphSync.png
docs/GraphSync.png
+0
-0
docs/GraphSync.svg
docs/GraphSync.svg
+18
-7
docs/go-graphsync.puml
docs/go-graphsync.puml
+17
-6
No files found.
docs/GraphSync.png
View replaced file @
e9863c55
View file @
aa3e3d8c
205 KB
|
W:
|
H:
229 KB
|
W:
|
H:
2-up
Swipe
Onion skin
docs/GraphSync.svg
View file @
aa3e3d8c
This diff is collapsed.
Click to expand it.
docs/go-graphsync.puml
View file @
aa3e3d8c
...
...
@@ -19,10 +19,14 @@ package "go-selector" {
interface
"GetBlockFunc func(cid) block.Block"
as
GetBlockFunc
object
"Package Public Functions"
as
go
Selector
PF
{
Select
(
Selector
,
root
Node
,
getBlockFunc
GetBlockFunc
)
SelectionTraverser
interface
Selector
Querier
{
Select
(
Selector
,
root
Node
)
SelectionTraverser
Validate
(
Selector
,
root
Node
,
incomingResponses
SelectionTraverser
)
SelectionTraverser
}
object
"Package Public Functions"
as
goSelectorPF
{
NewSelectorQuerier
(
getBlockFunc
GetBlockFunc
)
SelectorQuerier
}
}
package
"go-graphsync"
{
...
...
@@ -30,13 +34,14 @@ package "go-graphsync" {
network
:
GraphySyncNetwork
requestManager
:
RequestManager
responseManager
:
ResponseManager
getBlockFunc
:
GetBlockFunc
selectorQuerier
:
SelectorQuerier
Request
(
p
peer
.
ID
,
selector
Selector
,
root
Node
)
SelectionTraverser
ReceiveMessage
(
ctx
context
.
Context
,
sender
peer
.
ID
,
incoming
GraphSyncMessage
)
ReceiveError
(
error
)
}
GraphSync
*--
SelectorQuerier
package
network
{
interface
Receiver
{
...
...
@@ -65,10 +70,12 @@ package "go-graphsync" {
package
requestmanager
{
class
RequestManager
{
network
:
GraphSyncNetwork
selectorQuerier
:
SelectorQuerier
SendRequest
(
p
peer
.
ID
,
selector
Selector
,
node
rootNode
)
SelectionTraverser
ProcessResponses
(
responses
[]
GraphSyncResponse
)
}
go
Selector
PF
..
RequestManager
Selector
Querier
--*
RequestManager
RequestManager
*--
GraphSyncNetwork
GraphSync
*--
RequestManager
note
as
requestManager
...
...
@@ -81,10 +88,10 @@ package "go-graphsync" {
package
responsemanager
{
class
ResponseManager
{
network
:
GraphySyncNetwork
getBlockFunc
:
GetBlockFunc
selectorQuerier
:
SelectorQuerier
ProcessRequests
(
p
peer
.
ID
,
requests
[]
GraphSyncRequests
)
}
go
Selector
PF
..
ResponseManager
Selector
Querier
--*
ResponseManager
ResponseManager
*--
GraphSyncNetwork
GraphSync
*--
ResponseManager
note
as
responseManagerNote
...
...
@@ -140,6 +147,7 @@ package "go-graphsync" {
package
"go-filecoin"
{
class
"go-filecoin"
{
graphSync
:
GraphSync
selectorQuerier
:
SelectorQuerier
host
:
libp2pHost
.
Host
}
...
...
@@ -147,6 +155,9 @@ package "go-filecoin" {
"go-filecoin"
..
goGraphsyncPf
"go-filecoin"
..
goGraphSyncNetworkPF
"go-filecoin"
..
Selector
"go-filecoin"
*--
SelectorQuerier
"go-filecoin"
..
goSelectorPF
}
@
enduml
\ No newline at end of file
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