fkafka_ffi 1.0.2 copy "fkafka_ffi: ^1.0.2" to clipboard
fkafka_ffi: ^1.0.2 copied to clipboard

Use librdkafka via Dart FFI, wraps admin and producer and consumer clients.

example/example.dart

import 'package:fkafka_ffi/fkafka_ffi.dart';

main() {
  // instantiate the client
  var client = FkafkaAdminClient(
      conf: FkafkaConf({
        'bootstrap.servers': '127.0.0.1:9092'
      })
  );

  // use its method like create topic
  client.newTopic('topic');

  // release when no longer in use
  client.release();
}
3
likes
100
pub points
0%
popularity

Publisher

verified publisherheadone.cn

Use librdkafka via Dart FFI, wraps admin and producer and consumer clients.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

ffi

More

Packages that depend on fkafka_ffi