28 lines
652 B
Rust
28 lines
652 B
Rust
mod client;
|
|
mod descriptor;
|
|
mod error;
|
|
mod executor;
|
|
mod runtime;
|
|
|
|
pub use client::WorkerApiClient;
|
|
pub use descriptor::{DescriptorStore, migrate, migrator};
|
|
pub use error::WorkerError;
|
|
pub use executor::{AdapterExecutor, ObjectSourceEndpoint};
|
|
pub use runtime::{
|
|
AttemptContext, AttemptExecution, AttemptExecutor, ExecutionFailure, WorkerConfig,
|
|
WorkerRunOutcome, WorkerRuntime,
|
|
};
|
|
|
|
pub const COMPONENT_NAME: &str = "remora-worker";
|
|
|
|
use client::{incarnation_id, operation_id};
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::COMPONENT_NAME;
|
|
|
|
#[test]
|
|
fn exposes_component_name() {
|
|
assert_eq!(COMPONENT_NAME, "remora-worker");
|
|
}
|
|
}
|