mod.rs 678 Bytes
Newer Older
1
2
3
4
5
//! Core abstractions for the SGLang router
//!
//! This module contains the fundamental types and traits used throughout the router:
//! - Worker trait and implementations
//! - Error types
6
//! - Circuit breaker for reliability
7
8
//! - Common utilities

9
pub mod circuit_breaker;
10
11
12
13
pub mod error;
pub mod worker;

// Re-export commonly used types at the module level
14
15
16
pub use circuit_breaker::{
    CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitState,
};
17
18
pub use error::{WorkerError, WorkerResult};
pub use worker::{
19
20
    start_health_checker, BasicWorker, DPAwareWorker, HealthChecker, Worker, WorkerCollection,
    WorkerFactory, WorkerLoadGuard, WorkerType,
21
};