dht

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crawl

func Crawl()

func GetSize

func GetSize() int

func InsertSpider

func InsertSpider(infohash string, name string)

func Load

func Load(dsn string, conn int) error

func OnCrawl

func OnCrawl(w *dht.Wire)

func SetCallback

func SetCallback(cb func(infohash string, name string))

Types

type FindData

type FindData struct {
	Infohash string
	Name     string
}

func Find

func Find(str string, max int) []FindData

func Last

func Last(n int) []FindData

Jump to

Keyboard shortcuts

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