ConfigServer (config_server v0.4.1)
Copy MarkdownThis module implements a GenServer that monitors a git repository. The content of the repository is parsed and changes are handed to a callback.
Summary
Functions
Returns a specification to start this module under a supervisor.
Retrieve the current config.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Retrieve the current config.
@spec start_link([]) :: {:ok, pid()}
@spec start_link(%{ repo_url: String.t(), branch: String.t() | nil, git_ssh_command: String.t() | nil, repo_path: String.t(), pull_interval_ms: integer(), state_change_fun: nil | fun() | {atom(), atom()}, parsing_fun: nil | fun() | {atom(), atom()} }) :: {:ok, pid()}