aboutsummaryrefslogtreecommitdiff
path: root/dht/remote_node.go
blob: 7dbf89364f2dc3045736494fe85997360f292413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package dht

import (
	"fmt"
	"net"

	"github.com/felix/dhtsearch/models"
)

type remoteNode struct {
	addr net.Addr
	id   models.Infohash
}

// String implements fmt.Stringer
func (r remoteNode) String() string {
	return fmt.Sprintf("%s (%s)", r.id.String(), r.addr.String())
}