Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Announcement ¶
type Announcements ¶
func (*Announcements) Full ¶
func (a *Announcements) Full() bool
func (*Announcements) Get ¶
func (a *Announcements) Get() *Announcement
func (*Announcements) Len ¶
func (a *Announcements) Len() int
func (*Announcements) Put ¶
func (a *Announcements) Put(ac *Announcement)
func (*Announcements) Wait ¶
func (a *Announcements) Wait() <-chan struct{}
type Dht ¶
type Dht struct { Mu sync.Mutex Announcements *Announcements ChNode chan *Node Die chan struct{} ErrDie error LocalID nodeID Conn *net.UDPConn QueryTypes map[string]func(map[string]interface{}, net.UDPAddr) FriendsLimiter *rate.Limiter Secret []byte Seeds []string }
func (*Dht) MakeFriends ¶
func (d *Dht) MakeFriends()
Click to show internal directories.
Click to hide internal directories.