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-bitswap
Commits
e040a00a
Commit
e040a00a
authored
Sep 19, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(bitswap:strat) interface comments
parent
666443af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
strategy/interface.go
strategy/interface.go
+3
-2
No files found.
strategy/interface.go
View file @
e040a00a
...
@@ -7,10 +7,11 @@ import (
...
@@ -7,10 +7,11 @@ import (
)
)
type
Strategy
interface
{
type
Strategy
interface
{
// Returns a slice of Peers
that
// Returns a slice of Peers
with whom the local node has active sessions
Peers
()
[]
*
peer
.
Peer
Peers
()
[]
*
peer
.
Peer
// WantList returns the WantList for the given Peer
// BlockIsWantedByPeer returns true if peer wants the block given by this
// key
BlockIsWantedByPeer
(
u
.
Key
,
*
peer
.
Peer
)
bool
BlockIsWantedByPeer
(
u
.
Key
,
*
peer
.
Peer
)
bool
// ShouldSendTo(Peer) decides whether to send data to this Peer
// ShouldSendTo(Peer) decides whether to send data to this Peer
...
...
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