Expand description
Espresso API server with both Axum (HTTP/JSON) and gRPC endpoints
Modulesยง
- axum ๐
- Axum HTTP/JSON API handlers
- error
- Typed API errors for proper HTTP/gRPC status code mapping
- handlers
- Shared handler functions for API endpoints, used by both Axum and Tonic APIs.
- proto
- routes
- Route constants and URL builders for Axum HTTP API
- tonic ๐
- gRPC service implementation
- v1
- V1 API module - legacy APIs
- v2
- V2 API module - proto-based APIs
Functionsยง
- create_
combined_ router - Create a combined router serving both v1 and v2 APIs
- create_
reward_ service - Create the reward gRPC service
- create_
router_ v1 - Create v1 router without OpenAPI documentation (internal types)
- create_
router_ v2 - Create v2 router with OpenAPI documentation (proto types)
- serve_
axum - Start Axum HTTP server with combined v1 and v2 APIs
- serve_
tonic - Start Tonic gRPC server