Skip to content

自定义Slot #3554

@levanhoa66803-cmyk

Description

@levanhoa66803-cmyk

在组合使用slot 的场景下(GatewayFlowSlot+自定义slot ),GatewayFlowSlot 通过SentinelGatewayFilter 从上下文中提取值,GatewayFlowSlot 进行值与规则的匹配;
请问自定义slot 如何拿到拦截器冲上下文提取的值呢?
思路:如果新增一个slot ,在GatewayFlowSlot 之前执行,通过context 判断如果时网关的,则获取数值传递到下一个slot ;目前版本是否有提gatewayContext ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions