blob: 4b10fbbdfb16fe8cde7df72c7cde9607f0c6ceee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use std::time::Duration;
// API endpoints
pub const LOGIN_ENDPOINT: &str = "/command/login";
pub const SESSION_ENDPOINT: &str = "/session";
pub const WS_TERMINAL_ENDPOINT: &str = "/ws/terminal";
pub const WS_CONTROL_ENDPOINT: &str = "/ws/control";
// Connection settings
pub const CONNECTION_TIMEOUT_SECS: u64 = 30;
pub fn connection_timeout() -> Duration {
Duration::from_secs(CONNECTION_TIMEOUT_SECS)
}
|