Available on crate feature
server only.Expand description
HTTP server for receiving behavioral data from the Chrome extension.
See server::run to start the server and server::ServerConfig
for configuration.
HTTP server for receiving behavioural data from the Chrome extension.
This module provides an HTTP server that:
- Accepts raw behavioural data from the Chrome extension via
POST /ingest - Processes it through synheart-flux’s
BehaviorProcessor - Sends processed HSI to the local gateway via
GatewayClient
Use ServerConfig to configure the server and run() to start it.
§Architecture
Chrome Extension ──→ POST /ingest ──→ sensor-agent ──→ gateway ──→ Syni Life
↓
[Flux Processing]Structs§
- Behavioral
Session - Behavioral session data from Chrome extension
- Error
Response - Generic error response returned by the server.
- Health
Response - Response from the
GET /healthendpoint. - Ingest
Response - Response from the
POST /ingestendpoint. - Server
Config - Server configuration
- Server
State - Shared server state
Functions§
- run
- Run the HTTP server