Skip to content

Architecture

The package is structured following the same structure as CloudEvents spec in the following modules:

  • events implements the base CloudEvent model, required fields and canonical data types serialization.
  • formats implements the logic for serialization and deserialization between the CloudEvent model and formats (JSON, AVRO, etc.). These are not usually used directly.
  • bindings implements the logic for serialization and deserialization between the CloudEvent model and protocol bindings (HTTP, KAFKA, etc.). It reuses functions from formats when necessary (i.e. HTTP in structured JSON mode will use the already implemented JSON format)