common/peer/jax_protocol/mod.rs
1//! JAX Protocol - Custom ALPN protocol for peer status checking and bucket sync
2//!
3//! This module implements a custom iroh protocol for:
4//! - Checking whether a peer is online
5//! - Checking whether a peer has a specific bucket
6//! - Checking the sync status of a bucket between peers
7//! - Fetching the current bucket link from a peer
8//! - Announcing new bucket versions to peers
9
10mod client;
11mod handler;
12mod messages;
13mod state;
14
15pub use client::{announce_to_peer, fetch_bucket, ping_peer};
16pub use handler::{JaxProtocol, JAX_ALPN};
17pub use messages::{
18 AnnounceMessage, FetchBucketRequest, FetchBucketResponse, PingRequest, PingResponse, SyncStatus,
19};
20pub use state::BucketStateProvider;