ConfigServer (config_server v0.1.0)

Copy Markdown

This 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

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

config()

Retrieve the current config.

get_application_env()

start_link(args)

@spec start_link([]) :: {:ok, pid()}
@spec start_link(%{
  repo_url: String.t(),
  repo_path: String.t(),
  pull_interval_ms: integer(),
  state_change_fun: nil | fun()
}) :: {:ok, pid()}