Skip to main content

Module server

Module server 

Source
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§

BehavioralSession
Behavioral session data from Chrome extension
ErrorResponse
Generic error response returned by the server.
HealthResponse
Response from the GET /health endpoint.
IngestResponse
Response from the POST /ingest endpoint.
ServerConfig
Server configuration
ServerState
Shared server state

Functions§

run
Run the HTTP server