aarondb/projection_index
projection_index — non-authoritative index lifecycle
Index state is a replayable projection of an ordered source. Queries are only available while the index is healthy; the source remains authoritative.
Types
pub type Health {
Building
Rebuilding
Queryable
Degraded(reason: String)
Failed(reason: String)
}
Constructors
-
Building -
Rebuilding -
Queryable -
Degraded(reason: String) -
Failed(reason: String)
Values
pub fn begin_rebuild(
index: Index,
schema_version: Int,
) -> Result(Index, Error)
Marks the current projection unavailable while a separate generation is built.
pub fn failure_reason(index: Index) -> option.Option(String)