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-dms3
Commits
0013415d
Commit
0013415d
authored
Dec 23, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/interface: move more to Dialer
parent
7d7e0511
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
net/interface.go
net/interface.go
+9
-9
No files found.
net/interface.go
View file @
0013415d
...
...
@@ -82,15 +82,6 @@ type Network interface {
// If ProtocolID is "", writes no header.
NewStream
(
ProtocolID
,
peer
.
ID
)
(
Stream
,
error
)
// Peers returns the peers connected
Peers
()
[]
peer
.
ID
// Conns returns the connections in this Netowrk
Conns
()
[]
Conn
// ConnsToPeer returns the connections in this Netowrk for given peer.
ConnsToPeer
(
p
peer
.
ID
)
[]
Conn
// BandwidthTotals returns the total number of bytes passed through
// the network since it was instantiated
BandwidthTotals
()
(
uint64
,
uint64
)
...
...
@@ -133,6 +124,15 @@ type Dialer interface {
// Connectedness returns a state signaling connection capabilities
Connectedness
(
peer
.
ID
)
Connectedness
// Peers returns the peers connected
Peers
()
[]
peer
.
ID
// Conns returns the connections in this Netowrk
Conns
()
[]
Conn
// ConnsToPeer returns the connections in this Netowrk for given peer.
ConnsToPeer
(
p
peer
.
ID
)
[]
Conn
}
// Connectedness signals the capacity for a connection with a given node.
...
...
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