# `Klife.Topic`
[🔗](https://github.com/oliveigah/klife/blob/main/lib/klife/topic.ex#L1)

Defines a topic configuration.

For now this struct is only useful for initial client configuration, but in the future it may be useful for the admin api as well.

## Client configurations

* `:name` (`t:String.t/0`) - Required. Topic's name

* `:default_producer` (`t:atom/0`) - Define the default producer to be used on produce API calls.

* `:default_partitioner` (`t:atom/0`) - Define the default partitioner module to be used on produce API calls. Must implement `Klife.Behaviours.Partitioner`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
