package
0.0.0-20211231051546-7613acdd8681
Repository: https://github.com/tigerbot/hyperdht.git
Documentation: pkg.go.dev

# Functions

CollectStream reads from a QueryStream's channels until the query is complete and returns all responses written the the response channel and the final error.
CollectValues reads from a QueryStream's channels until the query is complete and returns all non-nil values from all responses written to the response channel and the final error.
DiscardStream reads from a QueryStream's response channel to make sure the stream isn't back pressured, but it discards all responses, only returning the final error.
New creates a new dht-rpc instance.

# Constants

IDSize is the number of bytes we expect in an ID.

# Structs

Config contains all of the options available for a DHT instance.
A DHT holds everything needed to send RPC calls over a distributed hash table.
A Query contains the information that will be sent to other peers.
QueryOpts contains the different options that can be used to control query behavior.
A QueryResponse contains a node that responded to a Query and the information they used to respond.
A QueryStream holds all of the context needed to make queries or updates to remote peers.

# Type aliases

A Node represents another peer.
A QueryHandler handles query events from remote peers.