package
0.0.0-20220217203515-361014b38333
Repository: https://github.com/mildc/dht-crawler.git
Documentation: pkg.go.dev
# Functions
Decode decodes a bencoded string to string, int, list or map.
DecodeDict decodes a map value.
DecodeInt decodes int value in the data.
DecodeList decodes a list value.
DecodeString decodes a string in the data.
Encode encodes a string, int, dict or list value to a bencoded string.
EncodeDict encodes a dict value.
EncodeInt encodes a int value.
EncodeList encodes a list value.
EncodeString encodes a string value.
New returns a DHT pointer.
NewCrawlConfig returns a config in crawling mode.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewStandardConfig returns a Config pointer with default values.
No description provided by the author
No description provided by the author
NewWire returns a Wire pointer.
ParseKey parses the key in dict data.
ParseKeys parses keys.
# Constants
BLOCK is 2 ^ 14.
CrawlMode for crawling the dht network.
DATA represents data message type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EXTENDED represents it is a extended message.
HANDSHAKE represents handshake bit.
MaxMetadataSize represents the max medata it can accept.
REJECT represents reject message type.
REQUEST represents request message type.
StandardMode follows the standard protocol.
# Variables
ErrNotReady is the error when DHT is not initialized.
ErrOnGetPeersResponseNotSet is the error that config OnGetPeersResponseNotSet is not set when call dht.GetPeers.
# Structs
Config represents the configure of dht.
DHT represents a DHT node.
No description provided by the author
No description provided by the author
No description provided by the author
Query represents the query data included queried node and query-formed data.
Request represents the request context.
Response contains the request context and the metadata info.
Transaction implements transaction.
No description provided by the author
Wire represents the wire protocol.
# Interfaces
No description provided by the author
Node represents a DHT node.
No description provided by the author
# Type aliases
No description provided by the author