Zaiming (Stone) Shi 46877e979b chore: update copyright-year преди 2 години
..
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 преди 2 години
priv 46877e979b chore: update copyright-year преди 2 години
src 46877e979b chore: update copyright-year преди 2 години
test 46877e979b chore: update copyright-year преди 2 години
.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