diff options
| author | Felix Hanley <felix@userspace.com.au> | 2018-02-26 11:27:15 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2018-02-26 11:27:15 +0000 |
| commit | 19f63bb03bf2a83515fd47e6cf10a4db18a923d7 (patch) | |
| tree | 2f5b66f49904ed1a5e17bcf566587abb7f894dd3 /dht/peer.go | |
| parent | 6e449039520843c8df5203d6a16a0c6fadfe312b (diff) | |
| download | dhtsearch-19f63bb03bf2a83515fd47e6cf10a4db18a923d7.tar.gz dhtsearch-19f63bb03bf2a83515fd47e6cf10a4db18a923d7.tar.bz2 | |
Moved shared structs to package
Diffstat (limited to 'dht/peer.go')
| -rw-r--r-- | dht/peer.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/dht/peer.go b/dht/peer.go deleted file mode 100644 index 42e8438..0000000 --- a/dht/peer.go +++ /dev/null @@ -1,18 +0,0 @@ -package dht - -import ( - "fmt" - "net" -) - -// Peer on DHT network -type Peer struct { - Addr net.Addr - ID Infohash - Infohash Infohash -} - -// String implements fmt.Stringer -func (p Peer) String() string { - return fmt.Sprintf("%s (%s)", p.Infohash, p.Addr.String()) -} |
