TODO: How to persist the configuration
This commit is contained in:
parent
64af3271c2
commit
f978bae86a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue