Thales Macedo Garitezi 80a06c7201 Merge pull request #6654 from emqx/fix-unknown-calls 4 سال پیش
..
docs 5440b431a1 fix: typo takeovered -> takenover 4 سال پیش
etc 7c9c7b6a60 refactor(emqx_exhook): refactore exhook and add api module 4 سال پیش
include 63167cea70 chore: update copyright 4 سال پیش
priv 9f7b513a3f chore: fix copyright update script to include more files 4 سال پیش
src 80a06c7201 Merge pull request #6654 from emqx/fix-unknown-calls 4 سال پیش
test 63167cea70 chore: update copyright 4 سال پیش
.gitignore 879c191e41 refactor(exhook): adapt to the hocon schmea 4 سال پیش
README.md 879c191e41 refactor(exhook): adapt to the hocon schmea 4 سال پیش
rebar.config 34d6dbca61 chore(mix): simplify build by using rebar3 for umbrella apps 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