Module libp2p::kad [−][src]
Implementation of the libp2p-specific Kademlia protocol.
Modules
handler | |
kbucket | Implementation of a Kademlia routing table as used by a single peer participating in a Kademlia DHT. |
protocol | The Kademlia connection protocol upgrade and associated message types. |
record | Records and record storage abstraction of the libp2p Kademlia DHT. |
Structs
AddProviderOk | The successful result of publishing a provider record. |
Addresses | A non-empty list of (unique) addresses of a peer in the routing table. |
BootstrapOk | The successful result of |
GetClosestPeersOk | The successful result of |
GetProvidersOk | The successful result of |
GetRecordOk | The successful result of |
Kademlia |
|
KademliaConfig | The configuration for the |
PeerRecord | A record either received by the given peer or retrieved from the local record store. |
ProviderRecord | A record stored in the DHT whose value is the ID of a peer who can provide the value on-demand. |
PutRecordOk | The successful result of |
QueryId | Unique identifier for an active query. |
QueryMut | A mutable reference to a running query. |
QueryRef | An immutable reference to a running query. |
QueryStats | Execution statistics of a query. |
Record | A record stored in the DHT. |
Enums
AddProviderContext | The context of a |
AddProviderError | The possible errors when publishing a provider record. |
AddProviderPhase | The phases of a |
BootstrapError | The error result of |
GetClosestPeersError | The error result of |
GetProvidersError | The error result of |
GetRecordError | The error result of |
KadConnectionType | Status of our connection to a node reported by the Kademlia protocol. |
KademliaBucketInserts | The configurable strategies for the insertion of peers and their addresses into the k-buckets of the Kademlia routing table. |
KademliaEvent | The events produced by the |
PutRecordContext | The context of a |
PutRecordError | The error result of |
PutRecordPhase | The phases of a |
QueryInfo | Information about a running query. |
QueryResult | The results of Kademlia queries. |
Quorum | A quorum w.r.t. the configured replication factor specifies the minimum number of distinct nodes that must be successfully contacted in order for a query to succeed. |
Constants
ALPHA_VALUE | The |
K_VALUE | The |
Type Definitions
AddProviderResult | The result of publishing a provider record. |
BootstrapResult | The result of |
GetClosestPeersResult | The result of |
GetProvidersResult | The result of |
GetRecordResult | The result of |
PutRecordResult | The result of |