Spycsh c89a663b53 chore: refactor slog under emqx, conf and exhook 4 лет назад
..
docs 7c46c8712b docs(exhook): renanme CheckAcl to Authorize 4 лет назад
etc f3efc89192 refactor(config): replace all ':' with '=' in the *.conf (#5531) 4 лет назад
include aa019b34ad test(exhook): refine tests 4 лет назад
priv d3038c0b71 fix(exhook): BrokerInfo uptime is now a duration integer 4 лет назад
src c89a663b53 chore: refactor slog under emqx, conf and exhook 4 лет назад
test e37ecc10a6 style(behaviour attrs): unify behaviour declarations 4 лет назад
.gitignore 879c191e41 refactor(exhook): adapt to the hocon schmea 4 лет назад
README.md 879c191e41 refactor(exhook): adapt to the hocon schmea 4 лет назад
rebar.config aa019b34ad test(exhook): refine tests 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