heetch / felice

Felice is a nascent, opinionated Kafka library for Go, in Go
MIT License
20 stars 1 forks source link

Rework consumer API #49

Closed yaziine closed 5 years ago

yaziine commented 5 years ago

From now the main entry point of the Consumer is New. New takes a pointer to a Config in parameter, it shouldn't be nil, otherwise, an error will be returned.

Thus Serve needs no parameters. The configuration is handled by New and the brokers's addresses are managed by NewConfig.

The package documentation has been updated too.

This fixes #44.

yaziine commented 5 years ago

@rogpeppe 🆙