Sentinel
Sentinel copied to clipboard
自定义Slot
在组合使用slot 的场景下(GatewayFlowSlot+自定义slot ),GatewayFlowSlot 通过SentinelGatewayFilter 从上下文中提取值,GatewayFlowSlot 进行值与规则的匹配; 请问自定义slot 如何拿到拦截器冲上下文提取的值呢? 思路:如果新增一个slot ,在GatewayFlowSlot 之前执行,通过context 判断如果时网关的,则获取数值传递到下一个slot ;目前版本是否有提gatewayContext ?
目前 Sentinel 的 Context 中暂时不支持传递一些自定义的内容,可以再具体描述下使用的场景