b77f537dc6
- neuron-runtime, neuron-store, neuron-migrate: fix path deps (products/engram/ → foundation/engram/engrams/, products/el/ → foundation/el/engrams/) - neuron-rs workspace: fix axon-events/axon-protocol paths (../../../platform/ → ../../platform/, paths were off by one level) - neuron-lang/compiler/ removed (el self-hosting compiler now lives in foundation/el/el-compiler/)
18 lines
621 B
EmacsLisp
18 lines
621 B
EmacsLisp
// events/bus.el — Event bus. Three primitives over native_queue_*.
|
|
//
|
|
// Publish, consume, ack. Consumer identity IS the subscription.
|
|
// No separate subscribe step. No state. Intelligence lives in el.
|
|
// The Rust backend is swappable: InMemory → Engram → Kafka → RabbitMQ.
|
|
|
|
fn event_publish(topic: String, payload: String) -> Void {
|
|
native_queue_publish(topic, payload)
|
|
}
|
|
|
|
fn event_consume(topic: String, consumer: String) -> String {
|
|
return native_queue_consume(topic, consumer)
|
|
}
|
|
|
|
fn event_ack(topic: String, consumer: String, msg_id: String) -> Void {
|
|
native_queue_ack(topic, consumer, msg_id)
|
|
}
|