Expand description
Janus-Kafka
Kafka adapter for Janus.
Macros§
- opts
instrumented
Create an [Opts
].
Structs§
- Publishes messages to Kafka
- Allows a healthcheck to be performed on the Kafka publisher.
- Consumes messages from Kafka
- Allows a healthcheck to be performed on the Kafka subscriber.
- OffsetError is raised when an
Offset
can’t be created from aString
. - Opts
instrumented
A struct that bundles the options for creating mostMetric
types. - Acknowledges messages from the Publisher.
- Configuration options for a Publisher
- A
Message
to be published to Kafka. - Acknowledges messages from the Subscriber.
- Configuration options for a Subscriber
- Tokio
Runtime tokio-rt
AnAsyncRuntime
implementation backed by Tokio.
Enums§
- Respresents all errors.
- Position for the offset when no initial value.
Traits§
- 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. - Awaits each future returned by the publisher ack handler.
- Acknowledges each ack, if the result variant is an error, the error is propagated.