add SuccessShoulder and FailureShoulder

This commit is contained in:
Edward 2020-06-02 23:55:28 +08:00
parent d115e069aa
commit a5d498c39c

View File

@ -22,6 +22,8 @@ type Options struct {
MaxRequests uint32 MaxRequests uint32
WhenToBreak BreakConditionWatcher //是否应该断开电路(打开电路开关) WhenToBreak BreakConditionWatcher //是否应该断开电路(打开电路开关)
OnStateChanged StateChangedEventHandler OnStateChanged StateChangedEventHandler
SuccessShoulder uint32
FailureShoulder uint32
Ctx context.Context Ctx context.Context
} }