Crux v2020-03-17 17:55:51Z Crux.Base View Source

TODO: Write me

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Computes a map of all producers keyed by shard_id.

Link to this section Types

Link to this type

options() View Source
options() ::
  %{
    :gateway => Crux.Gateway.gateway(),
    :cache_provider => module(),
    optional(:consumer) => module(),
    optional(:producer) => module()
  }
  | [
      gateway: Crux.Gateway.gateway(),
      cache_provider: module(),
      consumer: module(),
      producer: module()
    ]

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

producers(base) View Source
producers(base :: Supervisor.name()) :: %{required(pos_integer()) => pid()}

Computes a map of all producers keyed by shard_id.

Link to this function

start_link(options) View Source
start_link(opts :: options() | {options(), GenServer.options()}) ::
  Supervisor.on_start()