Aetherance opened a new issue, #3219:
URL: https://github.com/apache/dubbo-go/issues/3219

   ### ✅ 验证清单
   
   - [x] 🔍 我已经搜索过 [现有 
Issues](https://github.com/apache/dubbo-go/issues),确信这不是重复请求
   - [x] 📋 我已经查看了 [发布说明](https://github.com/apache/dubbo-go/releases),确信此功能尚未实现
   
   ### 🎯 功能描述
   
   Dubbo-Go v3 已提供静态路由配置 API,例如: 
   ```go
   func WithRouter(opts ...router.Option) InstanceOption {
        sdOpts := router.NewOptions(opts...)
   
        return func(insOpts *InstanceOptions) {
                if insOpts.Router == nil {
                        insOpts.Router = make([]*global.RouterConfig, 0)
                }
                insOpts.Router = append(insOpts.Router, sdOpts.Router)
        }
   }
   
   func WithConditions(conditions []string) Option {
        return func(opts *Options) {
                opts.Router.Conditions = conditions
        }
   }
   
   func WithTags(tags []global.Tag) Option {
        return func(opts *Options) {
                opts.Router.Tags = tags
        }
   
   }
   ```
   
   但是,这些静态配置尚未接入实际的路由链,导致用户通过上述方式配置的路由规则不会生效。
   
   本 issue 的目标是打通静态路由配置与 RouterChain 的链路,预期效果是通过 WithRouter(...) / 
WithConditions(...) / WithTags(...) 声明的路由规则生效,静态配置行为与动态配置一致,能够参与完整路由决策。
   
   ### 📋 使用场景
   
   支持使用 dubbo-go v3 api 配置路由
   
   ### ⚖️ 复杂性与风险评估
   
   _No response_
   
   ### 🔗 外部依赖
   
   _No response_
   
   ### 📚 附加信息
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to