JianBo He 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година
..
docs 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година
include 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година
priv 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година
src 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година
test 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година
.gitignore 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година
README.md 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година
rebar.config 485bffadd6 refactor(exhook): improve the exhook implementation пре 5 година

README.md

emqx_exhook

The emqx_exhook extremly enhance the extensibility for EMQ X. It allow using an others programming language to mount the hooks intead of erlang.

Feature

  • Based on gRPC, it brings a very wide range of applicability
  • Allows you to use the return value to extend emqx behavior.

Architecture

EMQ X                                      Third-party Runtime
+========================+                 +========+==========+
|    ExHook              |                 |        |          |
|   +----------------+   |      gRPC       | gRPC   |  User's  |
|   |   gPRC Client  | ------------------> | Server |  Codes   |
|   +----------------+   |    (HTTP/2)     |        |          |
|                        |                 |        |          |
+========================+                 +========+==========+

Usage

gRPC service

See: priv/protos/exhook.proto

CLI

Example

Recommended gRPC Framework

See: https://github.com/grpc-ecosystem/awesome-grpc

Thanks