-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add the routing management gRPC API #412
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
base: main
Are you sure you want to change the base?
Conversation
|
为啥三个test check过不了。 |
|
缺少 |
测试前应该先将 |
Windows 环境测试通过,Macos和ubuntu无法测试通过。 |
app/router/router.go
Outdated
| access sync.RWMutex | ||
| 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
a6df210 to
05d24d6
Compare
c73e413 to
a4e80f0
Compare
b11fcf0 to
7e24239
Compare
208f801 to
db934f0
Compare
8e4f881 to
cbade89
Compare
9ebd6ad to
d418401
Compare
参照handlerService写了一份控制路由的grpc api。
支持使用gRPC 增加 删除 改变
RuleObject,BalancerObject。风格基本与handlerservice一致。原本的
RuleObject没有tag属性,此次修改增加了tag属性。用于控制从配置文件加入的RuleObject,不填tag属性时会采用uuid作为RuleObject的tag。原本RuleObject的tag标签改为TargetTag。Test Case只完成了
RuleObject相关的。BalancerObject由于不会添加Outbound所以未能完成。