Fledex.Supervisor.Utils (fledex v0.6.0)

View Source

Some utilities related to the animatino system.

Summary

Functions

The name of the application Supervisor to which we can add dynamically supervisors. The AnimationSystem can be added to it

Defines the name of the pubsub system that is used by Fledex

used to register the workers with the registry

The name of the registry to which the workers will be registered

The name of the supervisor that observes all the workers in the AnimationSystem

Functions

app_supervisor()

@spec app_supervisor() :: module()

The name of the application Supervisor to which we can add dynamically supervisors. The AnimationSystem can be added to it

pubsub_name()

@spec pubsub_name() :: atom()

Defines the name of the pubsub system that is used by Fledex

via_tuple(strip_name, type, animation_name)

@spec via_tuple(atom(), :animator | :job | :coordinator | :led_strip, atom()) ::
  GenServer.name()

used to register the workers with the registry

worker_registry()

@spec worker_registry() :: module()

The name of the registry to which the workers will be registered

workers_supervisor()

@spec workers_supervisor() :: module()

The name of the supervisor that observes all the workers in the AnimationSystem