-
Notifications
You must be signed in to change notification settings - Fork 90
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
Dump routes to Go radix tree #1992
Conversation
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.
Looks excellent! 🤩 Only had one question:
.catch(reason => console.error(reason)) | ||
.finally(() => console.log('Routes extraction complete.', outputPath)) | ||
|
||
function defaultRoutes (): Trees { |
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.
This defaultRoutes routine doesn't need to be kept up-to-date? Is this only used when we don't know the version of the server or for something else?
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.
Yep, that's the one! I've extracted that list from existing targets.
This PR introduces a cli target that outputs the Elasticsearch routes as a Go radix-tree.