Sentinel/sentinel-adapter/sentinel-api-gateway-adapte...
Eric Zhao ae0b8a5c74 Refactor API gateway common module to separate converted rules from other rule managers
- Separate converted parameter rules from ParamFlowManager. Now the converted rules will be kept in GatewayRuleManager directly.
- Add a GatewayFlowSlot to do separate flow checking for generated rules.
- Refactor rule converting mechanism: now gateway rules in normal mode (without parameter) will also be converted to a parameter flow rule. The index will be the last (the last position). In GatewayParamParser we put a constant value to the last position.

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-22 09:47:41 +08:00
..
src Refactor API gateway common module to separate converted rules from other rule managers 2019-05-22 09:47:41 +08:00
README.md Add sentinel-api-gateway-adapter-common module for universal gateway rule and API definition management 2019-04-23 14:32:29 +08:00
pom.xml Refactor API gateway common module to separate converted rules from other rule managers 2019-05-22 09:47:41 +08:00

README.md

Sentinel API Gateway Adapter Common

The sentinel-api-gateway-adapter-common module provides common abstraction for API gateway flow control:

  • GatewayFlowRule: flow control rule specific for route or API defined in API gateway. This can be automatically converted to FlowRule or ParamFlowRule.
  • ApiDefinition: gateway API definition with a group of predicates