dht

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2020 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v0.8.0

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager added in v0.8.1

func NewManager(addrs []string, interval time.Duration, maxNeighbors uint) *Manager

func (*Manager) Output added in v0.8.0

func (m *Manager) Output() <-chan Result

func (*Manager) Terminate added in v0.8.0

func (m *Manager) Terminate()

type Result added in v0.8.0

type Result interface {
	InfoHash() [20]byte
	PeerAddrs() []net.TCPAddr
}

type Service added in v0.8.0

type Service interface {
	Start()
	Terminate()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL