JianBo He 66f69e7693 feat(exhook): make request_failed_action working 4 سال پیش
..
docs 4585306774 chore(exhook): upgrade to 0.6.2 5 سال پیش
etc 66f69e7693 feat(exhook): make request_failed_action working 4 سال پیش
include 6354e75626 chore: update copyrights 4 سال پیش
priv 66f69e7693 feat(exhook): make request_failed_action working 4 سال پیش
src 66f69e7693 feat(exhook): make request_failed_action working 4 سال پیش
test 66f69e7693 feat(exhook): make request_failed_action working 4 سال پیش
.gitignore 2fda0a1565 chore(apps): Sync again all apps 5 سال پیش
README.md 2fda0a1565 chore(apps): Sync again all apps 5 سال پیش
rebar.config 60e830fef7 chore(ex): update grpc to 0.6.3 4 سال پیش

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