============== 组合策略 ============== CompositeStrategy 组合策略 根据错误类型选择不同的策略
| 288 | // CompositeStrategy 组合策略 |
| 289 | // 根据错误类型选择不同的策略 |
| 290 | type CompositeStrategy struct { |
| 291 | strategies map[string]SupervisorStrategy |
| 292 | fallback SupervisorStrategy |
| 293 | } |
| 294 | |
| 295 | // NewCompositeStrategy 创建组合策略 |
| 296 | func NewCompositeStrategy(fallback SupervisorStrategy) *CompositeStrategy { |
nothing calls this directly
no outgoing calls
no test coverage detected