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

Exposing Routes on Router #40

Open
pquerna opened this issue Nov 6, 2014 · 2 comments
Open

Exposing Routes on Router #40

pquerna opened this issue Nov 6, 2014 · 2 comments

Comments

@pquerna
Copy link

pquerna commented Nov 6, 2014

Hi,

I was looking at adding the ability to advertise web routes to Vulcan in a package outside of gocraft/web. This would be kinda similar to how Mailgun's scroll registers its routes into etcd, so then vulcand can send it traffic:

https://github.com/mailgun/scroll

However the Routes are currently all private, and there is no way to get them once they have been added. This could be as easy as adding a Routes() []*Routes or similar function, so then it is possible to introspect the routes on a router.

@cypriss
Copy link
Member

cypriss commented May 18, 2015

@pquerna Sorry for the delay in responding to this. Is this still something you're interested in?

@pquerna
Copy link
Author

pquerna commented Aug 7, 2015

@cypriss Yes. Right now we override all of the Get/Put/Post functions in our own structure to capture the routes as they are being added.

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

No branches or pull requests

2 participants