A wrapper around KafkaEx so you can mock it in test.
Available in Hex, the package can be installed as:
- Add
kafka_implto your list of dependencies inmix.exs:
```elixir
def deps do
[{:kafka_impl, "~> 0.1.0"}]
end
```
- Ensure
kafka_implis started before your application:
```elixir
def application do
[applications: [:kafka_impl]]
end
```
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.KafkaExIn your config/test.exs, add:
config :kafka_impl, :impl, KafkaImpl.KafkaMock