/kafka_impl

Interface over KafkaEx for mocking in test

Primary LanguageElixirMIT LicenseMIT

KafkaImpl

A wrapper around KafkaEx so you can mock it in test.

Installation

Available in Hex, the package can be installed as:

  1. Add kafka_impl to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:kafka_impl, "~> 0.1.0"}]
end
```
  1. Ensure kafka_impl is started before your application:
```elixir
def application do
  [applications: [:kafka_impl]]
end
```

Usage

Need more documentation here, but check out kafkamon to see this library in use.

In your config/config.exs, add:

config :kafka_impl, :impl, KafkaImpl.KafkaEx

In your config/test.exs, add:

config :kafka_impl, :impl, KafkaImpl.KafkaMock