Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrChallengeMismatch warpnet.WarpError = "challenge mismatch" ErrChallengeSignatureInvalid warpnet.WarpError = "invalid challenge signature" )
Variables ¶
This section is empty.
Functions ¶
func NewDiscoveryService ¶
func NewDiscoveryService( ctx context.Context, userRepo UserStorer, nodeRepo NodeStorer, ) *discoveryService
Types ¶
type DiscoveryHandler ¶
type DiscoveryHandler func(warpnet.WarpAddrInfo)
type DiscoveryInfoStorer ¶
type NodeStorer ¶
type NodeStorer interface {
BlocklistRemove(peerId warpnet.WarpPeerID) (err error)
IsBlocklisted(peerId warpnet.WarpPeerID) (bool, error)
BlocklistExponential(peerId warpnet.WarpPeerID) error
}
Click to show internal directories.
Click to hide internal directories.