View Source Fledex.Driver.Manager (fledex v0.3.0)

Summary

Types

The structure to hold the driver related data.

Types

@type driver_t() :: %{
  merge_strategy: atom(),
  driver_modules: [module()],
  config: %{required(atom()) => map()}
}

The structure to hold the driver related data.

It consists of:

  • :driver_modules: Which modules should get loaded. More than one module can be loaded at the same time
  • config: a map with driver specific configurations. Each driver gets its own configuration. The driver module name is used as key to separate the drivers from each other. example:
      %{Fledex.Driver.Impl.Kino: %{
        update_freq: 10
      }}
  • :merge_strategy: The merge strategy that will be applied to