-
Notifications
You must be signed in to change notification settings - Fork 154
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
add trie for route #262
add trie for route #262
Conversation
IMPORT 使用规范,请教下其他同学。 代码中不要出现中文注释。 |
Resolve conflicts pls |
|
||
const ( | ||
Get = "GET" | ||
Put = "PUT" | ||
Post = "POST" | ||
Delete = "DELETE" | ||
) |
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.
What about using constant defined in the net/http?
The impots format problem can be solved with the tools |
|
Feat/trie
remove chinese and fix reviewdog issues
key = getTrieKey(method, r.Match.Path, isPrefix) | ||
} | ||
rm.activeConfig.RouteTrie.Put(key, r.Route) | ||
} |
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.
resolve it
* add trie for route * bug fix * bug fix * merge master * add assert for params * add assert for params * a/b should match prefix:a/b * a/b should match prefix:a/b * a/b should match prefix:a/b * a/b should match prefix:a/b * a/b should match prefix:a/b * a/b should match prefix:a/b * merge with master * merge with master * merge with master * merge with master * merge with master * merge with master * merge with master * review dog * review dog * review dog * review dog * review dog * add note * add note * add note * add note * remove chinese * update * remove chinese and fix reviewdog issues Co-authored-by: yangqing.xyq <yangqing.xyq@gongdao.com> Co-authored-by: Mark4z <36187602+mark4z@users.noreply.github.com> Co-authored-by: zhangxun <18721825717@163.com> Co-authored-by: Randy <ztelur@gmail.com>
What this PR does: add trie struct for route request to matched filter
Does this PR introduce a user-facing change?: remove head match for request