自定义Slot
Open
wait-for-feedback
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
在组合使用slot 的场景下(GatewayFlowSlot+自定义slot ),GatewayFlowSlot 通过SentinelGatewayFilter 从上下文中提取值,GatewayFlowSlot 进行值与规则的匹配;
请问自定义slot 如何拿到拦截器冲上下文提取的值呢?
思路:如果新增一个slot ,在GatewayFlowSlot 之前执行,通过context 判断如果时网关的,则获取数值传递到下一个slot ;目前版本是否有提gatewayContext ?
Contributor guide
Assessment
This issue has not been assessed yet.