Expand description
JAX Protocol - Custom ALPN protocol for peer status checking and bucket sync
This module implements a custom iroh protocol for:
- Checking whether a peer is online
- Checking whether a peer has a specific bucket
- Checking the sync status of a bucket between peers
- Fetching the current bucket link from a peer
- Announcing new bucket versions to peers
Structs§
- Announce
Message - Announcement of a new bucket version to peers
- Fetch
Bucket Request - Request to fetch the current bucket link from a peer
- Fetch
Bucket Response - Response to a fetch bucket request
- JaxProtocol
- Protocol handler for the JAX protocol
- Ping
Request - Request to ping a peer and check bucket sync status
- Ping
Response - Response to a ping request
Enums§
- Sync
Status - Sync status between two peers for a bucket
Constants§
- JAX_
ALPN - ALPN identifier for the JAX protocol
Traits§
- Bucket
State Provider - Trait for providing bucket state information to the JAX protocol handler
Functions§
- announce_
to_ peer - Announce a new bucket version to a peer
- fetch_
bucket - Fetch the current bucket link from a peer
- ping_
peer - Ping a peer to check the sync status of a bucket