style(behaviour attrs): unify behaviour declarations
This commit is contained in:
parent
d2fc66f436
commit
c9a0c37dbb
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_metrics).
|
||||
|
||||
-behavior(gen_server).
|
||||
-behaviour(gen_server).
|
||||
|
||||
-include("emqx.hrl").
|
||||
-include("logger.hrl").
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_sys_mon).
|
||||
|
||||
-behavior(gen_server).
|
||||
-behaviour(gen_server).
|
||||
|
||||
-include("types.hrl").
|
||||
-include("logger.hrl").
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_authn_api).
|
||||
|
||||
-behavior(minirest_api).
|
||||
-behaviour(minirest_api).
|
||||
|
||||
-include("emqx_authn.hrl").
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_authz_api_mnesia).
|
||||
|
||||
-behavior(minirest_api).
|
||||
-behaviour(minirest_api).
|
||||
|
||||
-include("emqx_authz.hrl").
|
||||
-include_lib("emqx/include/logger.hrl").
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_authz_api_settings).
|
||||
|
||||
-behavior(minirest_api).
|
||||
-behaviour(minirest_api).
|
||||
|
||||
-export([ api_spec/0
|
||||
, settings/2
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_authz_api_sources).
|
||||
|
||||
-behavior(minirest_api).
|
||||
-behaviour(minirest_api).
|
||||
|
||||
-include("emqx_authz.hrl").
|
||||
-include_lib("emqx/include/logger.hrl").
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_exhook_demo_svr).
|
||||
|
||||
-behavior(emqx_exhook_v_1_hook_provider_bhvr).
|
||||
-behaviour(emqx_exhook_v_1_hook_provider_bhvr).
|
||||
|
||||
%%
|
||||
-export([ start/0
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_coap_channel).
|
||||
|
||||
-behavior(emqx_gateway_channel).
|
||||
-behaviour(emqx_gateway_channel).
|
||||
|
||||
-include_lib("emqx/include/logger.hrl").
|
||||
-include("emqx_coap.hrl").
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_coap_frame).
|
||||
|
||||
-behavior(emqx_gateway_frame).
|
||||
-behaviour(emqx_gateway_frame).
|
||||
|
||||
%% emqx_gateway_frame API
|
||||
-export([ initial_parse_state/1
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
-include_lib("emqx_gateway/include/emqx_gateway.hrl").
|
||||
|
||||
-behavior(emqx_gateway_impl).
|
||||
-behaviour(emqx_gateway_impl).
|
||||
|
||||
%% APIs
|
||||
-export([ reg/0
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
-include("include/emqx_gateway.hrl").
|
||||
|
||||
-behavior(gen_server).
|
||||
-behaviour(gen_server).
|
||||
|
||||
%% APIs
|
||||
-export([ reg/2
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
%% @doc The frame parser for ExProto
|
||||
-module(emqx_exproto_frame).
|
||||
|
||||
-behavior(emqx_gateway_frame).
|
||||
-behaviour(emqx_gateway_frame).
|
||||
|
||||
-export([ initial_parse_state/1
|
||||
, serialize_opts/0
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
%% The gRPC server for ConnectionAdapter
|
||||
-module(emqx_exproto_gsvr).
|
||||
|
||||
% -behavior(emqx_exproto_v_1_connection_adapter_bhvr).
|
||||
% -behaviour(emqx_exproto_v_1_connection_adapter_bhvr).
|
||||
|
||||
-include("emqx_exproto.hrl").
|
||||
-include_lib("emqx/include/logger.hrl").
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
%% @doc The ExProto Gateway Implement interface
|
||||
-module(emqx_exproto_impl).
|
||||
|
||||
-behavior(emqx_gateway_impl).
|
||||
-behaviour(emqx_gateway_impl).
|
||||
|
||||
%% APIs
|
||||
-export([ reg/0
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
%% @doc The LwM2M Gateway Implement interface
|
||||
-module(emqx_lwm2m_impl).
|
||||
|
||||
-behavior(emqx_gateway_impl).
|
||||
-behaviour(emqx_gateway_impl).
|
||||
|
||||
%% APIs
|
||||
-export([ reg/0
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_sn_channel).
|
||||
|
||||
-behavior(emqx_gateway_channel).
|
||||
-behaviour(emqx_gateway_channel).
|
||||
|
||||
-include("emqx_sn.hrl").
|
||||
-include_lib("emqx/include/emqx.hrl").
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
%% @doc The frame parser for MQTT-SN protocol
|
||||
-module(emqx_sn_frame).
|
||||
|
||||
-behavior(emqx_gateway_frame).
|
||||
-behaviour(emqx_gateway_frame).
|
||||
|
||||
-include("emqx_sn.hrl").
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
%% @doc The MQTT-SN Gateway Implement interface
|
||||
-module(emqx_sn_impl).
|
||||
|
||||
-behavior(emqx_gateway_impl).
|
||||
-behaviour(emqx_gateway_impl).
|
||||
|
||||
%% APIs
|
||||
-export([ reg/0
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_stomp_channel).
|
||||
|
||||
-behavior(emqx_gateway_channel).
|
||||
-behaviour(emqx_gateway_channel).
|
||||
|
||||
-include("emqx_stomp.hrl").
|
||||
-include_lib("emqx/include/emqx.hrl").
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
|
||||
-module(emqx_stomp_frame).
|
||||
|
||||
-behavior(emqx_gateway_frame).
|
||||
-behaviour(emqx_gateway_frame).
|
||||
|
||||
-include("emqx_stomp.hrl").
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_stomp_impl).
|
||||
|
||||
-behavior(emqx_gateway_impl).
|
||||
-behaviour(emqx_gateway_impl).
|
||||
|
||||
%% APIs
|
||||
-export([ reg/0
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_exproto_echo_svr).
|
||||
|
||||
-behavior(emqx_exproto_v_1_connection_handler_bhvr).
|
||||
-behaviour(emqx_exproto_v_1_connection_handler_bhvr).
|
||||
|
||||
-export([ start/0
|
||||
, stop/1
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_delayed_api).
|
||||
|
||||
-behavior(minirest_api).
|
||||
-behaviour(minirest_api).
|
||||
|
||||
-include_lib("typerefl/include/types.hrl").
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
-module(emqx_telemetry_api).
|
||||
|
||||
-behavior(minirest_api).
|
||||
-behaviour(minirest_api).
|
||||
|
||||
-import(emqx_mgmt_util, [ schema/1
|
||||
, object_schema/1
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
%% TODO: refactor uri path
|
||||
-module(emqx_topic_metrics_api).
|
||||
|
||||
-behavior(minirest_api).
|
||||
-behaviour(minirest_api).
|
||||
|
||||
-import(emqx_mgmt_util, [ properties/1
|
||||
, schema/1
|
||||
|
|
Loading…
Reference in New Issue