Documentation ¶
Index ¶
- type Node
- type Option
- func SetAddress(ip string) Option
- func SetBlacklist(bl *lru.ARCCache) Option
- func SetIPv6(b bool) Option
- func SetLogger(l logger.Logger) Option
- func SetOnAnnouncePeer(f func(models.Peer)) Option
- func SetOnBadPeer(f func(models.Peer)) Option
- func SetPort(p int) Option
- func SetUDPTimeout(s int) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { // OnAnnoucePeer is called for each peer that announces itself OnAnnouncePeer func(models.Peer) // OnBadPeer is called for each bad peer OnBadPeer func(models.Peer) // contains filtered or unexported fields }
Node joins the DHT network
Click to show internal directories.
Click to hide internal directories.