#cloud-events #router #cerk

cerk_router_broadcast

This is a package for CERK. CERK is an open source CloudEvents Router written in Rust with a MicroKernel architecture.

5 releases

0.2.8 Jan 5, 2021
0.2.7 Jan 4, 2021
0.2.6 Dec 7, 2020
0.2.1 Nov 25, 2020
0.2.0 Nov 23, 2020

#6 in #cerk

Apache-2.0

54KB
854 lines

cerk_router_broadcast

Build status

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: Broadcast Router

This router broadcasts all received CloudEvents to the configured ports.

Configurations

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.

e.g.

use cerk::kernel::Config;
let config = Config::Vec(vec![Config::String(String::from("output-port"))]);

Examples

Update Readme

The original readme text is a Rust doc comment in the lib.rs file

  1. cargo install cargo-readme
  2. cargo readme > README.md

License

Apache-2.0

Dependencies

~5–8MB
~177K SLoC