emqx/apps/emqx_exhook
JimMoen 6168745f90 chore: update copyright 2022-04-14 11:23:25 +08:00
..
docs docs: EMQ X -> EMQX 2022-02-15 22:12:46 +01:00
etc feat(exhook): support customize hook_priority 2022-03-28 15:54:38 +08:00
include chore: update copyright 2022-04-14 11:23:25 +08:00
priv chore: update copyright 2022-04-14 11:23:25 +08:00
src chore: update copyright 2022-04-14 11:23:25 +08:00
test chore: update copyright 2022-04-14 11:23:25 +08:00
.gitignore feat(exhook): add field `meta` for grpc proto 2022-04-07 17:26:59 +08:00
README.md docs(README): EMQ X -> EMQX 2022-02-15 16:15:25 +01:00
rebar.config chore(ex): update grpc to 0.6.3 2021-08-10 17:59:36 +08:00

README.md

emqx_exhook

The emqx_exhook extremly enhance the extensibility for EMQX. 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

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

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

Thanks