Module peer

Module peer 

Source
Expand description

Storage layer implementation. Just a light wrapper around the Iroh-Blobs protocol and ALPN handler

Re-exports§

pub use sync::SyncJob;
pub use sync::SyncProvider;
pub use sync::SyncTarget;

Modules§

sync
Sync provider abstraction and job execution

Structs§

BlobsStore
Client over a local iroh-blob store. Exposes an iroh-blobs peer over the endpoint. Router must handle the iroh-blobs APLN Also acts as our main BlockStore implemenetation for bucket, node, and data storage and retrieval
NodeAddr
Network-level addressing information for an iroh node.
Peer
Overview of a peer’s state, generic over a bucket log provider. Provides everything that a peer needs in order to load data, interact with peers, and manage buckets.
PeerBuilder
Peer builder with typestate pattern for compile-time enforcement

Enums§

BlobsStoreError
PeerError
PingReplyStatus
Sync status between two peers for a bucket

Constants§

ALPN
ALPN identifier for the JAX protocol

Functions§

spawn
Spawn the peer with protocol router