previa-runner 1.0.0-alpha.18

API for remote execution of integration and load tests via HTTP streaming (SSE).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::collections::HashMap;
use std::sync::Arc;

use tokio::sync::RwLock;
use tokio_util::sync::CancellationToken;

#[derive(Clone, Default)]
pub struct AppState {
    pub executions: Arc<RwLock<HashMap<String, CancellationToken>>>,
    pub runner_auth_key: Option<String>,
}