MCPcopy Create free account
hub / github.com/astercloud/aster / CompositeStrategy

Struct CompositeStrategy

pkg/actor/supervisor.go:290–293  ·  view source on GitHub ↗

============== 组合策略 ============== CompositeStrategy 组合策略 根据错误类型选择不同的策略

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected