class

Arcana::Events::Backend

Inherits Reference < Object

Abstract base. Implementations decide where events land.

Instance methods

close

Release resources; flush any buffered writes.

Source
query(since : Time | Nil = nil, type : String | Nil = nil, subject : String | Nil = nil, limit : Int32 = 100) : Array(Event)

Query stored events. Filters are AND-combined.

Source
record(event : Event) : Nil

Record an event. Should not block on I/O — implementations may queue asynchronously and return immediately.

Source