Expand description
Janus-Kafka
Kafka adapter for Janus.
Macros§
- opts
instrumented - Create an [
Opts].
Structs§
- Kafka
Publisher - Publishes messages to Kafka
- Kafka
Publisher Status - Allows a healthcheck to be performed on the Kafka publisher.
- Kafka
Subscriber - Consumes messages from Kafka
- Kafka
Subscriber Status - Allows a healthcheck to be performed on the Kafka subscriber.
- Offset
Error - OffsetError is raised when an
Offsetcan’t be created from aString. - Opts
instrumented - A struct that bundles the options for creating most
Metrictypes. - Publisher
Acker - Acknowledges messages from the Publisher.
- Publisher
Config - Configuration options for a Publisher
- Publisher
Message - A
Messageto be published to Kafka. - Subscriber
Acker - Acknowledges messages from the Subscriber.
- Subscriber
Config - Configuration options for a Subscriber
- Tokio
Runtime tokio-rt - An
AsyncRuntimeimplementation backed by Tokio.
Enums§
- Kafka
Error - Respresents all errors.
- Offset
- Position for the offset when no initial value.
Traits§
- Message
Ext - Message extension methods for Kafka messages
Functions§
- instrumented_
publisher_ ack_ handler instrumented - Awaits each future returned by the ack handler and increments a metric. A convenience function to continuously processes acks until an error is encountered.
- instrumented_
subscriber_ ack_ handler instrumented - For each ack increments a metric depending on the variant in the result. A convenience function to continuously processes acks until an error is encountered.
- noop_
publisher_ ack_ handler - Awaits each future returned by the publisher ack handler.
- noop_
subscriber_ ack_ handler - Acknowledges each ack, if the result variant is an error, the error is propagated.