Exposes a new reactor package (not particularly attached to this name) .
Doesn't change existing API.
This makes it easier to:
Embed Beehive's in other binaries or libraries.
Create custom Beehive binaries with additional hive packages hosted elsewhere.
Create specialized binaries which benefit from Beehive's vast catalog of bees, making it possible to create really powerful interactions with a few lines of code.
Clients embedding Beehive's don't have a built-in HTTP API server started by default, which is probably desirable and safer if you're programming your own chains, as opposed to using the GUI to create them.
I've included an example that demonstrates embedding. Also implemented the Hello bee action the example is using.
In future iterations, we could expose an interface to start/stop the API server also, maybe add a few functions that wrap the event, action and chain creation while adding some safety.
Coverage remained the same at 72.705% when pulling e098b31f25ce1e9c9a198401aa5d605da700b476 on reactor into f8fd3de0f4be68c5b4d1c1083734546b5f838e61 on master.
Highlights:
reactor
package (not particularly attached to this name) .This makes it easier to:
Clients embedding Beehive's don't have a built-in HTTP API server started by default, which is probably desirable and safer if you're programming your own chains, as opposed to using the GUI to create them.
I've included an example that demonstrates embedding. Also implemented the Hello bee action the example is using.
In future iterations, we could expose an interface to start/stop the API server also, maybe add a few functions that wrap the event, action and chain creation while adding some safety.