Architecture
The package is structured following the same structure as CloudEvents spec in the following modules:
events
implements the baseCloudEvent
model, required fields and canonical data types serialization.formats
implements the logic for serialization and deserialization between theCloudEvent
model and formats (JSON, AVRO, etc.). These are not usually used directly.bindings
implements the logic for serialization and deserialization between theCloudEvent
model and protocol bindings (HTTP, KAFKA, etc.). It reuses functions fromformats
when necessary (i.e. HTTP in structured JSON mode will use the already implemented JSON format)