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();
}
4
likes
120
pub points
11%
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