blob: 4e0b2845c98bded0ffafa1d8b879b4ca49d83a6b [file] [log] [blame]
package sser
import "context"
// PeerFinderLocalhost implements PeerFinder but only finds "127.0.0.1".
type PeerFinderLocalhost struct{}
// Start implements PeerFinder.
func (p PeerFinderLocalhost) Start(ctx context.Context) ([]string, <-chan []string, error) {
return []string{"127.0.0.1"}, make(chan []string), nil
}
func NewPeerFinderLocalhost() PeerFinderLocalhost {
return PeerFinderLocalhost{}
}
// Confirm PeerFinderLocalhost implements PeerFinder.
var _ PeerFinder = PeerFinderLocalhost{}