cerk_loader_file
This is a package for CERK. CERK is an open source CloudEvents Router written in Rust with a MicroKernel architecture.
Introduction
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.
Components
CERK comes with a couple of prefabricated components, but implementing custom components is easy.
A good overview is provided on GitHub.
This Component: File Base Loader
The cerk_loader_file link the different modules together and pass it to the bootstrap
function.
It uses a ComponentStartLinks
file with all links to the start functions and a configuration file.
The configuration file could be passed by the env variable $INIT_PATH
or just use the path ./init.json
.
Example Config
Example ComponentStartLinks
extern crate cerk_loader_file;
use ;
use ;
use ;
use ;
const SCHEDULER: ScheduleFnRefStatic = &;
const ROUTER: InternalServerFnRefStatic = &;
const CONFIG_LOADER: InternalServerFnRefStatic = &;
const PORT: InternalServerFnRefStatic = &;
Examples
Update Readme
The original readme text is a Rust doc comment in the lib.rs file
cargo install cargo-readme
cargo readme > README.md
License
Apache-2.0