#error #plugin #generator #kafka #json #processor #utilities

kjp_generator_plugin

The base for a custom code generator for kjp-generator, part of kafka-json-processor project

2 releases

0.1.1 Feb 6, 2023
0.1.0 Jan 3, 2023

#71 in #processor


Used in kjp_generator

GPL-3.0-or-later

17KB
129 lines

Kafka-json-processor generator plugin framework

This is a project that lets you create a plugin for kjp-generator in Rust. This library contains logic for parsing input parameters, handling errors and some handy utilities.

Handy utilities

  • GeneratorError for signaling errors (DO use this one for error for correct error handling),
  • json_path_to_object_key(&str) -> String for generating &[ObjectKey] for use with kafka-json-processor-core from JSONPath (parses JSONPath).

How to create custom plugin

See examples for practical guide how to use kjp-generator-plugin. For technical details how plugins work, see kjp-generator documentation.

Dependencies

~2–3MB
~53K SLoC