Crates.io | cerk_config_loader_file |
lib.rs | cerk_config_loader_file |
version | 0.2.8 |
source | src |
created_at | 2020-11-25 20:03:54.246143 |
updated_at | 2021-01-05 15:46:12.062719 |
description | This is a package for CERK. CERK is an open source CloudEvents Router written in Rust with a MicroKernel architecture. |
homepage | https://github.com/ce-rust/cerk |
repository | https://github.com/ce-rust/cerk |
max_upload_size | |
id | 316411 |
size | 13,941 |
This is a package for CERK. CERK is an open source CloudEvents Router written in Rust with a MicroKernel architecture.
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 port loads configurations from a json file.
The file path could be set with the env variable CONFIG_PATH
, default is ./config.json
.
{
"routing_rules": [
"dummy-logger-output"
],
"ports": {
"ampq-input": {
"uri": "amqp://127.0.0.1:5672/%2f",
"consume_channels": [
{
"name": "test",
"ensure_queue": true,
"bind_to_exchange": "test"
}
],
"publish_channels": [
{
"name": "test",
"ensure_exchange": true
}
]
},
"dummy-logger-output": null
}
}
The original readme text is a Rust doc comment in the lib.rs file
cargo install cargo-readme
cargo readme > README.md
Apache-2.0