p2p/peerstore library
Export the peerstore interfaces.
Classes
- AddrBook
- AddrBook holds the multiaddrs of peers.
- AddressTTL
- TTL values for addresses
- KeyBook
- KeyBook tracks the keys of Peers.
- Metrics
- Metrics tracks metrics across a set of peers.
- PeerMetadata
- PeerMetadata can handle values of any type. Serializing values is up to the implementation. Dynamic type introspection may not be supported, in which case explicitly enlisting types in the serializer may be required.
- Peerstore
- Peerstore provides a thread-safe store of Peer related information.
- PeerStoreConfig
- Configuration for the peer store
- ProtoBook
- ProtoBook tracks the protocols supported by peers.
Exceptions / Errors
- ErrNotFound
- Error thrown when an item is not found in the peerstore.