vernemq / vmq_lfe_plugin

A Plugin template for VerneMQ using LFE (Lisp Flavoured Erlang)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vmq_lfe_plugin

LFE Versions Erlang Versions

An LFE application

Table of Contents

About

vmq_lfe_plugin is a Plugin template you can use to build a full VerneMQ Plugin in LFE (Lisp Flavoured Erlang).

Build

To build a binary version of the plugin, run

$ rebar3 lfe compile

Enable the Plugin

You can dynamically enable your Plugin with VerneMQ's vmq-admin command line tool, or in the vernemq.conf file.

with vmq-admin

$ vmq-admin plugin enable --name=vmq_lfe_plugin --path=/your-vernemq-plugins/vmq_lfe_plugin

with vernemq.conf

Add below lines to the vernemq.conf. This will enable the plugin after every VerneMQ reboot. Also note that the path needs to go down to the _build/default/lib/vmq_lfe_plugin folder. (The _build directory is created by calling the rebar3 compile command as described above)

plugins.vmq_lfe_plugin = on
plugins.vmq_lfe_plugin.path = path/to/my-verne-plugins/vmq_lfe_plugin

Tests

$ rebar3 lfe test

License

Apache License, Version 2.0

Copyright © 2021, Andre Fatton.

About

A Plugin template for VerneMQ using LFE (Lisp Flavoured Erlang)

License:Apache License 2.0


Languages

Language:LFE 78.3%Language:Erlang 21.7%