extern crate self as coactor;
mod cluster;
pub mod coordination {
pub use crate::cluster::{
ActorOwner, ActorOwnerReader, ActorOwnerRecord, ActorOwnerStore, CoordinationError,
CoordinationErrorKind, CoordinationStore, MutationOutcome, NodeDirectory, NodeLeaseStore,
NodeRecord, NodeSessionId, Revision, VersionedActorOwnerRecord,
};
pub mod backend {
pub mod s3 {
pub use crate::cluster::s3::{S3CoordinationStore, S3StoreConfigError};
}
}
}
#[cfg(test)]
pub(crate) use cluster::s3::S3CoordinationStore;
pub(crate) use cluster::{
ActorOwner, ActorOwnerReader, ActorOwnerRecord, ActorOwnerStore, CoordinationError,
MutationOutcome, NodeDirectory, NodeLeaseStore, NodeRecord, NodeSessionId, Revision,
VersionedActorOwnerRecord,
};
#[cfg(test)]
pub(crate) use cluster::{CoordinationStores, ServerRuntimeConfig, ServerStarter};
pub use cluster::{P2cPlacement, PlacementCandidate, PlacementContext, PlacementStrategy};
#[cfg(test)]
pub(crate) use runtime::ServerBuilderCore;
pub use coactor_macros::actor;
const TRANSPORT_PROTOCOL_VERSION: u32 = 2;
mod transport_protocol {
tonic::include_proto!("coactor.transport.v1");
}
#[doc(hidden)]
#[path = "macro_support.rs"]
pub mod __macro;
mod actor;
mod client;
mod runtime;
mod transport;
pub mod test_support;
pub use actor::*;
pub use client::session::Session;
pub use client::{Client, ClientBuilder};
pub use runtime::actor::{Actor, ActorRuntime, MessageContext};
pub use runtime::session::{SessionHandle, SessionId};
pub use runtime::{Server, ServerBuilder};
#[cfg(test)]
#[path = "../tests/cluster_authority.rs"]
mod cluster_authority_tests;
#[cfg(test)]
#[path = "../tests/cluster_session.rs"]
mod cluster_session_tests;
#[cfg(test)]
#[path = "../tests/placement.rs"]
mod placement_tests;
#[cfg(test)]
#[path = "../tests/s3_coordination.rs"]
mod s3_coordination_tests;
#[cfg(test)]
#[path = "../tests/session_semantics.rs"]
mod session_semantics_tests;