View Source Multiverses.Server (multiverses v0.11.0)

core server for managing multiverse partitions

Link to this section Summary

Link to this section Functions

@spec all(module()) :: [Multiverse.id()]
Link to this function

allow(modulespec, allow)

View Source
@spec allow([{module(), Multiverse.id()}], term()) ::
  :error | [{{module(), pid()}, Multiverse.id()}]
Link to this function

allow(module, owner, allow)

View Source
@spec allow(module(), pid() | Multiverse.id(), term()) ::
  :error | [{{module(), pid()}, Multiverse.id()}]

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec clear(module()) :: :ok
@spec id(
  module(),
  keyword()
) :: Multiverse.id()
Link to this function

shard(module_or_modules)

View Source
@spec shard(module()) :: [{module(), Multiverse.id()}]
@spec shards(pid()) :: [{module(), Multiverse.id()}]