Skip to content

[WIP] Kafka#9

Open
swhsiang wants to merge 2 commits intoHyperpilotio:masterfrom
swhsiang:kafka
Open

[WIP] Kafka#9
swhsiang wants to merge 2 commits intoHyperpilotio:masterfrom
swhsiang:kafka

Conversation

@swhsiang
Copy link
Copy Markdown

WHY / WHAT

To write data to Kafka.

Comment thread 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
Copy link
Copy Markdown
Contributor

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.

Comment thread log/log.go Outdated

// Logger defines a set of methods for writing application logs. Derived from and
// inspired by logrus.Entry.
type Logger interface {
Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Author

@swhsiang swhsiang Sep 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants