v0.3.0 · Interface
consumer
Consuming records, with and without consumer-group coordination.
Every function is async
Including the ones that only read local state —
assignment, position — which is not how they would be written for a native
implementation. A host component plugin's capabilities are installed on a
caller's linker as concurrent host functions, and a sync func fails to bind
there with "type mismatch with async". One sync function is therefore enough
to make the whole interface unservable from a component, and this package's
host-plugin world describes exactly that deployment. An async lift costs a
native implementation nothing — the body returns without suspending — so this
is the version that both kinds of provider can serve.
Resources
Type Aliases
T
config-entry
TA client configuration property.
error
TAn error, with librdkafka's own classification attached.
consumed-record
TA record read from a partition.
partition-ref
TA partition, named.
partition-offset
TA position in a partition.
partition-result
TOne partition's outcome from a batch operation.
partition
TA partition index within a topic.
position
TA starting position, for seek and assignment.
watermarks
TThe low and high watermarks of a partition.
timestamp-ms
Milliseconds since the Unix epoch.