tree: 2ecda46cd39dd52c5132e31cf856c7cf4002832c [path history] [tgz]
  1. .gitignore
  2. .travis.yml
  3. CHANGELOG.md
  4. LICENSE
  5. Makefile
  6. README.md
  7. Vagrantfile
  8. acl_bindings.go
  9. acl_create_request.go
  10. acl_create_response.go
  11. acl_delete_request.go
  12. acl_delete_response.go
  13. acl_describe_request.go
  14. acl_describe_response.go
  15. acl_filter.go
  16. acl_types.go
  17. add_offsets_to_txn_request.go
  18. add_offsets_to_txn_response.go
  19. add_partitions_to_txn_request.go
  20. add_partitions_to_txn_response.go
  21. admin.go
  22. alter_configs_request.go
  23. alter_configs_response.go
  24. api_versions_request.go
  25. api_versions_response.go
  26. async_producer.go
  27. balance_strategy.go
  28. broker.go
  29. client.go
  30. config.go
  31. config_resource_type.go
  32. consumer.go
  33. consumer_group.go
  34. consumer_group_members.go
  35. consumer_metadata_request.go
  36. consumer_metadata_response.go
  37. crc32_field.go
  38. create_partitions_request.go
  39. create_partitions_response.go
  40. create_topics_request.go
  41. create_topics_response.go
  42. delete_groups_request.go
  43. delete_groups_response.go
  44. delete_records_request.go
  45. delete_records_response.go
  46. delete_topics_request.go
  47. delete_topics_response.go
  48. describe_configs_request.go
  49. describe_configs_response.go
  50. describe_groups_request.go
  51. describe_groups_response.go
  52. dev.yml
  53. encoder_decoder.go
  54. end_txn_request.go
  55. end_txn_response.go
  56. errors.go
  57. fetch_request.go
  58. fetch_response.go
  59. find_coordinator_request.go
  60. find_coordinator_response.go
  61. heartbeat_request.go
  62. heartbeat_response.go
  63. init_producer_id_request.go
  64. init_producer_id_response.go
  65. join_group_request.go
  66. join_group_response.go
  67. leave_group_request.go
  68. leave_group_response.go
  69. length_field.go
  70. list_groups_request.go
  71. list_groups_response.go
  72. message.go
  73. message_set.go
  74. metadata_request.go
  75. metadata_response.go
  76. metrics.go
  77. mockbroker.go
  78. mockresponses.go
  79. offset_commit_request.go
  80. offset_commit_response.go
  81. offset_fetch_request.go
  82. offset_fetch_response.go
  83. offset_manager.go
  84. offset_request.go
  85. offset_response.go
  86. packet_decoder.go
  87. packet_encoder.go
  88. partitioner.go
  89. prep_encoder.go
  90. produce_request.go
  91. produce_response.go
  92. produce_set.go
  93. real_decoder.go
  94. real_encoder.go
  95. record.go
  96. record_batch.go
  97. records.go
  98. request.go
  99. response_header.go
  100. sarama.go
  101. sasl_handshake_request.go
  102. sasl_handshake_response.go
  103. sync_group_request.go
  104. sync_group_response.go
  105. sync_producer.go
  106. timestamp.go
  107. txn_offset_commit_request.go
  108. txn_offset_commit_response.go
  109. utils.go
  110. zstd_cgo.go
  111. zstd_fallback.go
vendor/github.com/Shopify/sarama/README.md

sarama

GoDoc Build Status Coverage

Sarama is an MIT-licensed Go client library for Apache Kafka version 0.8 (and later).

Getting started

  • API documentation and examples are available via godoc.
  • Mocks for testing are available in the mocks subpackage.
  • The examples directory contains more elaborate example applications.
  • The tools directory contains command line tools that can be useful for testing, diagnostics, and instrumentation.

You might also want to look at the Frequently Asked Questions.

Compatibility and API stability

Sarama provides a "2 releases + 2 months" compatibility guarantee: we support the two latest stable releases of Kafka and Go, and we provide a two month grace period for older releases. This means we currently officially support Go 1.8 through 1.11, and Kafka 1.0 through 2.0, although older releases are still likely to work.

Sarama follows semantic versioning and provides API stability via the gopkg.in service. You can import a version with a guaranteed stable API via http://gopkg.in/Shopify/sarama.v1. A changelog is available here.

Contributing