eidetic_projector v0.1.0-alpha6 Eidetic.Projector.Consumer.Kaffe

Kaffe Integration with Eidetic Projector

This module can be set as the Kaffe event handler and it will convert the payload received into the Eidetic Projector Bundle format and handle the event.

This integration will only work with a Projector running under the default name; it will not work if you’ve opted to override its name.

This is a Kaffe payload, as documented in their README:

# https://github.com/spreedly/kaffe
%{
  attributes: 0,
  crc: 1914336469,
  key: "kafka message key",
  magic_byte: 0,
  offset: 41,
  partition: 17,
  topic: "some-kafka-topic",
  value: "the actual kafka message value is here",
  ts: 1234567890123, # timestamp in milliseconds
  ts_type: :append  # timestamp type: :undefined | :create | :append
}

Link to this section Summary

Link to this section Functions

Link to this function handle_message(message)
handle_message(map()) :: :ok | :error