Commit aa3e3d8c authored by hannahhoward's avatar hannahhoward

docs(diagram): update with latest interfaces

parent e9863c55
docs/GraphSync.png

205 KB | W: | H:

docs/GraphSync.png

229 KB | W: | H:

docs/GraphSync.png
docs/GraphSync.png
docs/GraphSync.png
docs/GraphSync.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
...@@ -19,10 +19,14 @@ package "go-selector" { ...@@ -19,10 +19,14 @@ package "go-selector" {
interface "GetBlockFunc func(cid) block.Block" as GetBlockFunc interface "GetBlockFunc func(cid) block.Block" as GetBlockFunc
object "Package Public Functions" as goSelectorPF { interface SelectorQuerier {
Select(Selector, root Node, getBlockFunc GetBlockFunc) SelectionTraverser Select(Selector, root Node) SelectionTraverser
Validate(Selector, root Node, incomingResponses SelectionTraverser) SelectionTraverser Validate(Selector, root Node, incomingResponses SelectionTraverser) SelectionTraverser
} }
object "Package Public Functions" as goSelectorPF {
NewSelectorQuerier(getBlockFunc GetBlockFunc) SelectorQuerier
}
} }
package "go-graphsync" { package "go-graphsync" {
...@@ -30,13 +34,14 @@ package "go-graphsync" { ...@@ -30,13 +34,14 @@ package "go-graphsync" {
network : GraphySyncNetwork network : GraphySyncNetwork
requestManager : RequestManager requestManager : RequestManager
responseManager: ResponseManager responseManager: ResponseManager
getBlockFunc: GetBlockFunc selectorQuerier: SelectorQuerier
Request(p peer.ID, selector Selector, root Node) SelectionTraverser Request(p peer.ID, selector Selector, root Node) SelectionTraverser
ReceiveMessage(ctx context.Context, sender peer.ID, incoming GraphSyncMessage) ReceiveMessage(ctx context.Context, sender peer.ID, incoming GraphSyncMessage)
ReceiveError(error) ReceiveError(error)
} }
GraphSync *-- SelectorQuerier
package network { package network {
interface Receiver { interface Receiver {
...@@ -65,10 +70,12 @@ package "go-graphsync" { ...@@ -65,10 +70,12 @@ package "go-graphsync" {
package requestmanager { package requestmanager {
class RequestManager { class RequestManager {
network : GraphSyncNetwork network : GraphSyncNetwork
selectorQuerier: SelectorQuerier
SendRequest(p peer.ID, selector Selector, node rootNode) SelectionTraverser SendRequest(p peer.ID, selector Selector, node rootNode) SelectionTraverser
ProcessResponses(responses []GraphSyncResponse) ProcessResponses(responses []GraphSyncResponse)
} }
goSelectorPF .. RequestManager SelectorQuerier --* RequestManager
RequestManager *-- GraphSyncNetwork RequestManager *-- GraphSyncNetwork
GraphSync *-- RequestManager GraphSync *-- RequestManager
note as requestManager note as requestManager
...@@ -81,10 +88,10 @@ package "go-graphsync" { ...@@ -81,10 +88,10 @@ package "go-graphsync" {
package responsemanager { package responsemanager {
class ResponseManager { class ResponseManager {
network : GraphySyncNetwork network : GraphySyncNetwork
getBlockFunc : GetBlockFunc selectorQuerier: SelectorQuerier
ProcessRequests(p peer.ID, requests []GraphSyncRequests) ProcessRequests(p peer.ID, requests []GraphSyncRequests)
} }
goSelectorPF .. ResponseManager SelectorQuerier --* ResponseManager
ResponseManager *-- GraphSyncNetwork ResponseManager *-- GraphSyncNetwork
GraphSync *-- ResponseManager GraphSync *-- ResponseManager
note as responseManagerNote note as responseManagerNote
...@@ -140,6 +147,7 @@ package "go-graphsync" { ...@@ -140,6 +147,7 @@ package "go-graphsync" {
package "go-filecoin" { package "go-filecoin" {
class "go-filecoin" { class "go-filecoin" {
graphSync : GraphSync graphSync : GraphSync
selectorQuerier: SelectorQuerier
host: libp2pHost.Host host: libp2pHost.Host
} }
...@@ -147,6 +155,9 @@ package "go-filecoin" { ...@@ -147,6 +155,9 @@ package "go-filecoin" {
"go-filecoin" .. goGraphsyncPf "go-filecoin" .. goGraphsyncPf
"go-filecoin" .. goGraphSyncNetworkPF "go-filecoin" .. goGraphSyncNetworkPF
"go-filecoin" .. Selector "go-filecoin" .. Selector
"go-filecoin" *-- SelectorQuerier
"go-filecoin" .. goSelectorPF
} }
@enduml @enduml
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment