MoonBit-native Unleash evaluation core and explicitly scoped server-side SDK
pub struct Context {
// private fields
}pub struct Metrics {
// private fields
}pub(all) struct Payload {
kind : String
value : String
}pub struct Snapshot {
// private fields
}pub struct SnapshotStore {
// private fields
}fn SnapshotStore::evaluate(self : SnapshotStore, name : String, ctx : Context, now_ms : Int64, fallback? : Bool) -> EvaluatedDecisionfn SnapshotStore::evaluate_many(self : SnapshotStore, names : Array[String], ctx : Context, now_ms : Int64, fallback? : Bool) -> BatchDecisionfn SnapshotStore::get_variant(self : SnapshotStore, name : String, ctx : Context, now_ms : Int64) -> Variantfn SnapshotStore::hydrate_delta(self : SnapshotStore, source : String, now_ms : Int64) -> Int64 raisefn SnapshotStore::install(self : SnapshotStore, source : String, now_ms : Int64, origin? : String) -> Int64 raisefn SnapshotStore::new(stale_after_ms? : Int64, max_stale_ms? : Int64) -> SnapshotStore raise ConfigErrorpub(all) struct Status {
ready : Bool
closed : Bool
stale : Bool
generation : Int64
feature_count : Int
source : String
last_error : String?
consecutive_failures : Int
}Install
Download zipMoonBit-native Unleash evaluation core and explicitly scoped server-side SDK