discovery/seeker.go
2018-07-16 17:13:30 -04:00

10 lines
210 B
Go

package discovery
import "context"
// Seeker defines a way to send/recv messages to potential peers
type Seeker interface {
Listen(ctx context.Context, msgChan chan<- []byte) error
Send(msg []byte) error
}