-
Notifications
You must be signed in to change notification settings - Fork 4k
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 the routing management gRPC API #412
base: main
Are you sure you want to change the base?
Conversation
为啥三个test check过不了。 |
|
缺少
|
测试前应该先将 |
Windows 环境测试通过,Macos和ubuntu无法测试通过。 |
app/router/router.go
Outdated
domainStrategy Config_DomainStrategy | ||
rules []*Rule | ||
rules map[string]*Rule |
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.
Golang Map 是无序的,但是 rules 要求有序
感谢您的贡献,有几个需要注意的地方需要说明:
因此,我暂时将此 PR 修改为 work in progress。 |
Map已修改为Slice,取出时采用遍历方式取出需要的 |
a80df64
to
707efd6
Compare
d62f536
to
79f3057
Compare
961014c
to
a4d1509
Compare
a6df210
to
05d24d6
Compare
c73e413
to
a4e80f0
Compare
b11fcf0
to
7e24239
Compare
参照handlerService写了一份控制路由的grpc api。
支持使用gRPC 增加 删除 改变
RuleObject
,BalancerObject
。风格基本与handlerservice一致。原本的
RuleObject
没有tag属性,此次修改增加了tag属性。用于控制从配置文件加入的RuleObject
,不填tag属性时会采用uuid作为RuleObject
的tag。原本RuleObject
的tag标签改为TargetTag。Test Case只完成了
RuleObject
相关的。BalancerObject
由于不会添加Outbound
所以未能完成。