-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Kafka #9
base: master
Are you sure you want to change the base?
[WIP] Kafka #9
Conversation
config/config.go
Outdated
// Provider defines a set of read-only methods for accessing the application | ||
// configuration params as defined in one of the config files. | ||
type Provider interface { | ||
ConfigFileUsed() string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no existing package or library we can use for this? I don't see we're doing any special here.
log/log.go
Outdated
|
||
// Logger defines a set of methods for writing application logs. Derived from and | ||
// inspired by logrus.Entry. | ||
type Logger interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By having this interface, we would be able to easily change the dependency ( log library ) while we want. If you think this way adds complexity to the code which is not necessary, I can remove it.
WHY / WHAT
To write data to Kafka.