The zenoh router (
zenohd executable) supports the loading of plugins at start-up.
A zenoh plugin is a library that can be loaded by the zenoh router at start-up. It shares a runtime with it, allowing the plugin to use the regular zenoh and/or zenoh-ne APIs with the same peer ID.
By default the zenoh router will automatically search and load plugins library files with such names:
- on Unix/Linux:
- on MacOS:
- on Windows:
The list of paths in which the zenoh router will search for plugins can be configured via the
--plugin-search-dir option (that can be repeated to specify several directories). The default list can be seen in using the
This automatic search and load of plugins can be desactivated using the
And some plugins library files to load anyway can be specified using the
--plugin option (repeatable). In such case, the complete path of the library file must be specified, and its filename is free.
Zenoh already provides the following plugins:
- the HTTP plugin: providing the zenoh REST API
- the Storages plugin: providing management of storages and backends