mirror of
https://github.com/crazybber/go-pattern-examples.git
synced 2025-04-04 13:43:34 +03:00
add SuccessShoulder and FailureShoulder
This commit is contained in:
parent
d115e069aa
commit
a5d498c39c
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,8 @@ type Options struct {
|
|||
MaxRequests uint32
|
||||
WhenToBreak BreakConditionWatcher //是否应该断开电路(打开电路开关)
|
||||
OnStateChanged StateChangedEventHandler
|
||||
SuccessShoulder uint32
|
||||
FailureShoulder uint32
|
||||
Ctx context.Context
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue