Current section

Files

Jump to
perspective lib perspective event_chain event_chain.ex
Raw

lib/perspective/event_chain/event_chain.ex

defmodule Perspective.EventChain do
def apply_event(event) do
Perspective.EventChain.PageBuffer.add(event)
Perspective.Notifications.emit(event)
{:ok, event}
end
def all() do
Perspective.EventChain.Reader.all()
end
def since(id) do
Perspective.EventChain.Reader.since(id)
end
end