Expand description
Axum HTTP service for receiving Raft RPCs.
Provides an Axum router with endpoints for all Raft RPC operations. Uses postcard2 serialization for request/response bodies.
When an auth_token is provided, every request must include an
Authorization: Bearer <token> header matching the expected value.
Requests without a valid token receive HTTP 401.
§Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /raft/vote | RequestVote RPC |
| POST | /raft/append | AppendEntries RPC |
| POST | /raft/snapshot | InstallSnapshot RPC |
| POST | /raft/full-snapshot | Full snapshot transfer |
Functions§
- raft_
service_ router - Create an Axum router for Raft RPC endpoints.