threefoldtech / rmb-rs

RMB implementation in rust
Apache License 2.0
3 stars 1 forks source link

Introduce plugins and implement file upload plugin #136

Closed muhamadazmy closed 11 months ago

muhamadazmy commented 1 year ago

This is a lot of work, i think it might have been a good idea to actually do that over 2 PRs. but it's too late now:

The first changes, are regarding some refactoring of the entire code base to separate different operational parts the app was split into multiple layers:

All this work was intended to allow custom plugins. Please read plugins docs for more information. But in a nutshell a plugin allows the rmb-peer to handle some requests itself without the need for a running local service. A plugin can be very simple as in if u get this request send this response, or more complex scenarios where the plugin needs to have 2 way negotiations.

Included in the PR a file upload plugin (please read the docs on how this operate).

Missing

The plugin and the code is taking those points above in consideration even if not implemented yet