EventStore v0.11.0-rc.0 EventStore.Registration.LocalRegistry behaviour View Source
Local process registration, restricted to a single node, using Elixir's Registry
Link to this section Summary
Functions
Starts a process using the given module/function/args parameters, and registers the pid with the given name
Get the pid of a registered name
Callbacks
Publish events
Link to this section Functions
Link to this function
register_name(name, module, fun, list)
View Source
register_name(name :: term, module :: atom, function :: atom, args :: [term]) :: {:ok, pid} | {:error, term}
Starts a process using the given module/function/args parameters, and registers the pid with the given name.
Get the pid of a registered name.
Link to this section Callbacks
Link to this callback
publish_events(stream_uuid, events)
View Source
publish_events(stream_uuid :: term, events :: [EventStore.RecordedEvent.t]) :: :ok
Publish events