• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

emqx / emqx / 12599823955

03 Jan 2025 03:18PM UTC coverage: 82.098%. First build
12599823955

Pull #14286

github

web-flow
Merge 6fd92c517 into d5a56c20b
Pull Request #14286: Implement node-level authentication/authorization cache

317 of 350 new or added lines in 30 files covered. (90.57%)

56825 of 69216 relevant lines covered (82.1%)

15283.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/apps/emqx_auth/src/proto/emqx_auth_cache_proto_v1.erl
1
%%--------------------------------------------------------------------
2
%% Copyright (c) 2024 EMQ Technologies Co., Ltd. All Rights Reserved.
3
%%
4
%% Licensed under the Apache License, Version 2.0 (the "License");
5
%% you may not use this file except in compliance with the License.
6
%% You may obtain a copy of the License at
7
%%
8
%%     http://www.apache.org/licenses/LICENSE-2.0
9
%%
10
%% Unless required by applicable law or agreed to in writing, software
11
%% distributed under the License is distributed on an "AS IS" BASIS,
12
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
%% See the License for the specific language governing permissions and
14
%% limitations under the License.
15
%%--------------------------------------------------------------------
16

17
-module(emqx_auth_cache_proto_v1).
18

19
-behaviour(emqx_bpapi).
20

21
-export([
22
    introduced_in/0,
23
    metrics/2,
24
    reset/2
25
]).
26

27
-include_lib("emqx/include/bpapi.hrl").
28

29
-define(TIMEOUT, 15000).
30

31
introduced_in() ->
NEW
32
    "5.9.0".
×
33

34
-spec metrics([node()], emqx_auth_cache:name()) ->
35
    emqx_rpc:erpc_multicall({node(), map()}).
36
metrics(Nodes, Name) ->
37
    erpc:multicall(Nodes, emqx_auth_cache, metrics_v1, [Name], ?TIMEOUT).
5✔
38

39
-spec reset([node()], emqx_auth_cache:name()) ->
40
    emqx_rpc:erpc_multicall(ok).
41
reset(Nodes, Name) ->
42
    erpc:multicall(Nodes, emqx_auth_cache, reset_v1, [Name], ?TIMEOUT).
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc