Skip to content
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

Export Consumer.Frozen and add http introspection handler #79

Merged
merged 1 commit into from
Dec 22, 2014

Conversation

schmichael
Copy link
Contributor

The http handler is copied from our internal metafora runner.


// Consumer contains just the Metafora methods exposed by the HTTP
// introspection endpoints.
type Consumer interface {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Consumer for a name? Im not sure that describes the interface's relationship to the metafora project. From the code it appears to be a metadata provider for the current metafora peer. Anyway, not a blocker.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I understand the name now... Its a consumed by the http handler.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, I wasn't even that clever... I just stole the name from metafora.go where it's implemented. I'll give it a few minutes of thought to try to come up with a better interface name before hitting the merge button. You know how I love making things idiomatic! :)

@epsniff
Copy link
Contributor

epsniff commented Dec 22, 2014

👍

@kyledj
Copy link
Contributor

kyledj commented Dec 22, 2014

📨📨📨
📨🙉📨
📨📨📨

schmichael added a commit that referenced this pull request Dec 22, 2014
Export Consumer.Frozen and add http introspection handler
@schmichael schmichael merged commit 4e31a61 into master Dec 22, 2014
@schmichael schmichael deleted the export-frozen branch December 22, 2014 22:27
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.

None yet

3 participants