TODO: How to persist the configuration

This commit is contained in:
Feng Lee 2017-08-14 09:32:39 +08:00
parent 64af3271c2
commit f978bae86a
1 changed files with 8 additions and 1 deletions

View File

@ -15,6 +15,13 @@
%%--------------------------------------------------------------------
%% @doc Hot Configuration
%%
%% TODO: How to persist the configuration?
%%
%% 1. Store in mnesia database?
%% 2. Store in dets?
%% 3. Store in data/app.config?
%%
-module(emqttd_config).
@ -25,7 +32,7 @@
%% @doc Read the configuration of an application.
-spec(read(atom()) -> {ok, list(env())} | {error, term()}).
read(_App) ->
%% TODO
%% TODO:
%% 1. Read the app.conf from etc folder
%% 2. Cuttlefish to read the conf
%% 3. Return the terms and schema