unmbt/ciallo/runtime does not have a README file
pub(open) trait Clock {
fn now_micros(Self) -> Int64
fn now_ms(Self) -> Int64 = _
}pub(open) trait KvStore {
async fn get(Self, key : StringView) -> String? raise RuntimeError
async fn put(Self, key : StringView, value : StringView, ttl_sec? : Int) -> Unit raise RuntimeError
async fn delete(Self, key : StringView) -> Unit raise RuntimeError
}pub(open) trait Lifecycle {
fn lifecycle_name(Self) -> String
async fn on_start(Self) -> Unit
async fn on_stop(Self) -> Unit
}pub struct ContextKey[T] {
// private fields
}fn[T] ContextKey::ContextKey(name : String, missing_status? : Int, missing_detail? : String) -> ContextKey[T]fn[T] ContextKey::new(name : String, missing_status? : Int, missing_detail? : String) -> ContextKey[T]pub struct ContextStore {
// private fields
}fn ContextStore::merge_from(self : ContextStore, other : ContextStore, allow_override? : Bool) -> String?pub struct Env {
// private fields
}pub struct EnvBuilder {
// private fields
}pub struct ExecutionContext {
// private fields
}fn ExecutionContext::ExecutionContext(schedule_fn? : (async () -> Unit) -> Unit) -> ExecutionContextpub struct MemoryKv {
// private fields
}async fn put(self : MemoryKv, key : StringView, value : StringView, ttl_sec? : Int) -> Unit raise RuntimeErrorpub struct MockHttpClient {
// private fields
}impl HttpClient for MockHttpClientfn MockHttpClient::MockHttpClient(handler : async (Request) -> Response raise RuntimeError) -> MockHttpClientInstall
Download zipCross-runtime MoonBit web framework with explicit 9-stage lifecycle, scoped encapsulation, typed routes, schema normalization, and OpenAPI 3.1