Zaiming (Stone) Shi 2e94880bb6 docs: More EMQ X -> EMQX rename in descriptive strings 4 年之前
..
docs 2e94880bb6 docs: More EMQ X -> EMQX rename in descriptive strings 4 年之前
etc 10b110447c chore(exhook): change root name emqx_exhook > exhook 4 年之前
include 9a6a8a778b feat(emqx_exhook): add metrics 4 年之前
priv fc92e4c8bf docs: fix typos 4 年之前
src 28bf20a366 fix(emqx_exhook): replace ssl-config schema with emqx_schema:client_ssl_opts_schema 4 年之前
test bf7ac80a83 feat: add api to delete override conf files 4 年之前
.gitignore 879c191e41 refactor(exhook): adapt to the hocon schmea 4 年之前
README.md 667d66eb1e docs(README): EMQ X -> EMQX 4 年之前
rebar.config 34d6dbca61 chore(mix): simplify build by using rebar3 for umbrella apps 4 年之前

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