EventStore v0.11.0-rc.0 EventStore.Registration behaviour View Source
Process registry specification
Link to this section Summary
Callbacks
Publish events
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
Link to this callback
register_name(name, module, function, args)
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.