Zaiming Shi a59218d008 fix(emqx_plugin_template): Dialyzer wanrings %!s(int64=5) %!d(string=hai) anos
..
etc 686c006d6e refactor(proj): Add apps %!s(int64=5) %!d(string=hai) anos
src a59218d008 fix(emqx_plugin_template): Dialyzer wanrings %!s(int64=5) %!d(string=hai) anos
test 0cd1c57a54 Migrate plugins from tag 4.2.2 %!s(int64=5) %!d(string=hai) anos
.gitignore 686c006d6e refactor(proj): Add apps %!s(int64=5) %!d(string=hai) anos
README.md 0cd1c57a54 Migrate plugins from tag 4.2.2 %!s(int64=5) %!d(string=hai) anos
TODO 0cd1c57a54 Migrate plugins from tag 4.2.2 %!s(int64=5) %!d(string=hai) anos
rebar.config 0cd1c57a54 Migrate plugins from tag 4.2.2 %!s(int64=5) %!d(string=hai) anos

README.md

emqx-plugin-template

This is a template plugin for the EMQ X broker. And you can see Plugin Development Guide to learning how to use it.

Plugin Config

Each plugin should have a 'etc/{plugin_name}.conf|config' file to store application config.

Authentication and ACL

emqx:hook('client.authenticate', fun ?MODULE:on_client_authenticate/3, [Env]).
emqx:hook('client.check_acl', fun ?MODULE:on_client_check_acl/5, [Env]).

Plugin and Hooks

Plugin Design

Hooks Design

License

Apache License Version 2.0

Author

EMQ X Team.