[][src]Crate cerk_port_dummies

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 Crate: Dummy Ports

This crate contains some dummy ports for testing and demonstrations.

The ports are:

  • port_printer
  • port_sequence_generator
  • port_sequence_validator

Statics

PORT_PRINTER

This is the pointer for the main function to start the port.

PORT_SEQUENCE_GENERATOR

This is the pointer for the main function to start the port.

PORT_SEQUENCE_VALIDATOR

This is the pointer for the main function to start the port.

Functions

port_printer_start

This port prints the CloudEvent id to the logger. This port is for testing!

port_sequence_generator_start

This port generates a CloudEvent every second (by default) and sends it to the Kernel. This port is for testing!

port_sequence_validator_start

This port validates a sequence of CloudEvent for completion, generated by the port_sequence_generator. This port is for testing!