Skip to main content

Module server

Module server 

Source
Expand description

REST/HTTP API Server (#67)

Remote access to experiment tracking with built-in quality stops.

§Toyota Principle: Jidoka (自働化)

Built-in quality - Remote access enables team-wide visibility while maintaining quality through input validation and error handling.

§Example

use entrenar::server::{TrackingServer, ServerConfig};
use std::net::SocketAddr;

let config = ServerConfig::default();
let server = TrackingServer::new(config);
server.run("127.0.0.1:5000".parse().expect("valid address")).await?;

Structs§

ApiResponse
API response wrapper
AppState
Application state shared across handlers
CreateExperimentRequest
Create experiment request
CreateRunRequest
Create run request
Experiment
Experiment data
ExperimentResponse
Experiment response
HealthResponse
Health check response
InMemoryStorage
In-memory storage for experiments and runs
LogMetricsRequest
Log metrics request
LogParamsRequest
Log parameters request
Run
Run data
RunResponse
Run response
ServerConfig
Server configuration
TrackingServer
Tracking server for experiment management
UpdateRunRequest
Update run request

Enums§

RunStatus
Run status
ServerError
Server errors

Functions§

create_experiment
Create a new experiment
create_run
Create a new run
get_experiment
Get an experiment by ID
get_run
Get a run by ID
health_check
Health check handler
list_experiments
List all experiments
log_metrics
Log metrics for a run
log_params
Log parameters for a run
update_run
Update a run

Type Aliases§

Result
Result type for server operations