Zaiming (Stone) Shi 46877e979b chore: update copyright-year 1 سال پیش
..
docs bbd843c68b feat(exhook): provide meta data in `RequestMeta` 3 سال پیش
etc 8aa60cc0a5 feat: generate a minimized emqx.conf 3 سال پیش
include 46877e979b chore: update copyright-year 1 سال پیش
priv 46877e979b chore: update copyright-year 1 سال پیش
src 46877e979b chore: update copyright-year 1 سال پیش
test 46877e979b chore: update copyright-year 1 سال پیش
.gitignore f9bc700498 fix(exhook): fix obsolete SSL files aren't deleted after the Exhook config update 3 سال پیش
README.md 667d66eb1e docs(README): EMQ X -> EMQX 4 سال پیش
rebar.config 5e100f52b8 style: erlfmt all `rebar.config` files and `bin/nodetool` 2 سال پیش

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