discovery/seeker.go

11 lines
307 B
Go

// Package discovery provides discovery interfaces to find other users of discovery on networks.
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
}