chore: add namespace for _schema.erl module
This commit is contained in:
parent
b1959086d9
commit
6e0a248555
|
@ -19,7 +19,8 @@
|
||||||
-include_lib("typerefl/include/types.hrl").
|
-include_lib("typerefl/include/types.hrl").
|
||||||
|
|
||||||
-export([ roots/0, fields/1, to_rate/1, to_capacity/1
|
-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).
|
-define(KILOBYTE, 1024).
|
||||||
|
|
||||||
|
@ -56,6 +57,8 @@
|
||||||
|
|
||||||
-import(emqx_schema, [sc/2, map/2]).
|
-import(emqx_schema, [sc/2, map/2]).
|
||||||
|
|
||||||
|
namespace() -> limiter.
|
||||||
|
|
||||||
roots() -> [limiter].
|
roots() -> [limiter].
|
||||||
|
|
||||||
fields(limiter) ->
|
fields(limiter) ->
|
||||||
|
|
|
@ -2,10 +2,12 @@
|
||||||
|
|
||||||
-include_lib("typerefl/include/types.hrl").
|
-include_lib("typerefl/include/types.hrl").
|
||||||
|
|
||||||
-export([roots/0, fields/1]).
|
-export([roots/0, fields/1, namespace/0]).
|
||||||
|
|
||||||
-define(TYPE(Type), hoconsc:mk(Type)).
|
-define(TYPE(Type), hoconsc:mk(Type)).
|
||||||
|
|
||||||
|
namespace() -> "retainer".
|
||||||
|
|
||||||
roots() -> ["retainer"].
|
roots() -> ["retainer"].
|
||||||
|
|
||||||
fields("retainer") ->
|
fields("retainer") ->
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
-include_lib("typerefl/include/types.hrl").
|
-include_lib("typerefl/include/types.hrl").
|
||||||
|
|
||||||
-export([roots/0, fields/1]).
|
-export([roots/0, fields/1, namespace/0]).
|
||||||
|
|
||||||
|
namespace() -> "slow_subs".
|
||||||
|
|
||||||
roots() -> ["slow_subs"].
|
roots() -> ["slow_subs"].
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue