chore: add namespace for _schema.erl module

This commit is contained in:
JianBo He 2022-01-12 19:04:08 +08:00 committed by Zaiming (Stone) Shi
parent b1959086d9
commit 6e0a248555
3 changed files with 10 additions and 3 deletions

View File

@ -19,7 +19,8 @@
-include_lib("typerefl/include/types.hrl").
-export([ roots/0, fields/1, to_rate/1, to_capacity/1
, minimum_period/0, to_burst_rate/1, to_initial/1]).
, minimum_period/0, to_burst_rate/1, to_initial/1
, namespace/0]).
-define(KILOBYTE, 1024).
@ -56,6 +57,8 @@
-import(emqx_schema, [sc/2, map/2]).
namespace() -> limiter.
roots() -> [limiter].
fields(limiter) ->

View File

@ -2,10 +2,12 @@
-include_lib("typerefl/include/types.hrl").
-export([roots/0, fields/1]).
-export([roots/0, fields/1, namespace/0]).
-define(TYPE(Type), hoconsc:mk(Type)).
namespace() -> "retainer".
roots() -> ["retainer"].
fields("retainer") ->

View File

@ -2,7 +2,9 @@
-include_lib("typerefl/include/types.hrl").
-export([roots/0, fields/1]).
-export([roots/0, fields/1, namespace/0]).
namespace() -> "slow_subs".
roots() -> ["slow_subs"].