CERK lets you route your CloudEvents between different different ports. Ports are transport layer bindings over which CloudEvents can be exchanged. It is built with modularity and portability in mind.
CERK comes with a couple of prefabricated components, but implementing custom components is easy.
A good overview is provided on GitHub.
This router broadcasts all received CloudEvents to the configured ports.
The Socket expects a
Config::Vec([Config::String]) as configuration.
The strings should be Port ids, to which all received CloudEvents should be forwarded to.
use cerk::kernel::Config; let config = Config::Vec(vec![Config::String(String::from("output-port"))]);
This is the pointer for the main function to start the router.
This is the main function to start the router.