Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Add the ability to include extra routes #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fraenkel
Copy link

Fix the testcases:
Stop the server
Close the body when reading responses
Use different ports (safest solution to prevent other issues)

@vito
Copy link
Contributor

vito commented Apr 21, 2014

Why do you want to add arbitrary routes?

@fraenkel
Copy link
Author

Currently, the gorouter adds a /routes on to the component.

@fraenkel
Copy link
Author

A different way would be to generalize the whole thing and provide a default set which are for /varz and /healthz.
Or just add a method to AddHandler which would avoid changing the constructor.

Pass the ip address to the VarzMessage
Fix the testcases:
  Stop the server
  Close the body when reading responses
  Use different ports (safest solution to prevent other issues)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants