zhongwencool b4b9853cfc Merge pull request #7732 from terry-xiaoyu/rule_bridges_api_docs2 пре 3 година
..
docs bbd843c68b feat(exhook): provide meta data in `RequestMeta` пре 3 година
etc b3d9605722 chore(conf): EMQ X -> EMQX in conf files пре 4 година
i18n 8e62ae5ebf feat(exhook): add i18n support пре 3 година
include 1a4afabe9f chore(exhook): reformat exhook codes пре 3 година
priv bbd843c68b feat(exhook): provide meta data in `RequestMeta` пре 3 година
src b4b9853cfc Merge pull request #7732 from terry-xiaoyu/rule_bridges_api_docs2 пре 3 година
test a7542e1673 test(exhook): exhook request_meta SUITE and prop tests пре 3 година
.gitignore 9a1e9c1465 chore(exhook): move auto generated code to specific dir пре 3 година
README.md 667d66eb1e docs(README): EMQ X -> EMQX пре 4 година
rebar.config 9a1e9c1465 chore(exhook): move auto generated code to specific dir пре 3 година

README.md

emqx_exhook

The emqx_exhook extremely enhance the extensibility for EMQX. It allow using an others programming language to mount the hooks instead 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

EMQX                                      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