tree: e4b9cde659cb3917aa67e58a0bd395d03bbd5990 [path history] [tgz]
  1. .gitignore
  2. .golangci.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. compress.go
  31. config.go
  32. config_resource_type.go
  33. consumer.go
  34. consumer_group.go
  35. consumer_group_members.go
  36. consumer_metadata_request.go
  37. consumer_metadata_response.go
  38. control_record.go
  39. crc32_field.go
  40. create_partitions_request.go
  41. create_partitions_response.go
  42. create_topics_request.go
  43. create_topics_response.go
  44. decompress.go
  45. delete_groups_request.go
  46. delete_groups_response.go
  47. delete_records_request.go
  48. delete_records_response.go
  49. delete_topics_request.go
  50. delete_topics_response.go
  51. describe_configs_request.go
  52. describe_configs_response.go
  53. describe_groups_request.go
  54. describe_groups_response.go
  55. describe_log_dirs_request.go
  56. describe_log_dirs_response.go
  57. dev.yml
  58. encoder_decoder.go
  59. end_txn_request.go
  60. end_txn_response.go
  61. errors.go
  62. fetch_request.go
  63. fetch_response.go
  64. find_coordinator_request.go
  65. find_coordinator_response.go
  66. go.mod
  67. go.sum
  68. gssapi_kerberos.go
  69. heartbeat_request.go
  70. heartbeat_response.go
  71. init_producer_id_request.go
  72. init_producer_id_response.go
  73. join_group_request.go
  74. join_group_response.go
  75. kerberos_client.go
  76. leave_group_request.go
  77. leave_group_response.go
  78. length_field.go
  79. list_groups_request.go
  80. list_groups_response.go
  81. message.go
  82. message_set.go
  83. metadata_request.go
  84. metadata_response.go
  85. metrics.go
  86. mockbroker.go
  87. mockkerberos.go
  88. mockresponses.go
  89. offset_commit_request.go
  90. offset_commit_response.go
  91. offset_fetch_request.go
  92. offset_fetch_response.go
  93. offset_manager.go
  94. offset_request.go
  95. offset_response.go
  96. packet_decoder.go
  97. packet_encoder.go
  98. partitioner.go
  99. prep_encoder.go
  100. produce_request.go
  101. produce_response.go
  102. produce_set.go
  103. real_decoder.go
  104. real_encoder.go
  105. record.go
  106. record_batch.go
  107. records.go
  108. request.go
  109. response_header.go
  110. sarama.go
  111. sasl_authenticate_request.go
  112. sasl_authenticate_response.go
  113. sasl_handshake_request.go
  114. sasl_handshake_response.go
  115. sticky_assignor_user_data.go
  116. sync_group_request.go
  117. sync_group_response.go
  118. sync_producer.go
  119. timestamp.go
  120. txn_offset_commit_request.go
  121. txn_offset_commit_response.go
  122. utils.go
  123. zstd.go
demo_test/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.12 through 1.13, and Kafka 2.1 through 2.4, 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