View Source Doex.Worker (doex v0.14.1)

Provides global access to the loaded configs, the API is available directly with Doex, so there is little need to dive too deep into here to learn how to use the API, but rather for understanding the internals of the project.

To lookup the loaded configs (or to load them for the first time),

  Doex.config

Which will call

  GenServer.call(Doex.Worker, :config)

To force a reload on the global configs,

  Doex.reload

Which will call

  GenServer.call(Doex.Worker, :reload)

If you wanted to load a different config file, then,

  Doex.reload("/path/to/new/file.doex")

Which will call

  GenServer.call(Doex.Worker, {:reload, "/path/to/new/file.doex"})

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.