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.
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 byNew
and the brokers's addresses are managed byNewConfig
.The package documentation has been updated too.
This fixes #44.