Created
August 25, 2018 15:36
-
-
Save aladine/18b38b37f838c1938131f67da0648e92 to your computer and use it in GitHub Desktop.
Circuit Setting struct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CommandConfig is used to tune circuit settings at runtime | |
type CommandConfig struct { | |
Timeout int `json:"timeout"` | |
MaxConcurrentRequests int `json:"max_concurrent_requests"` | |
RequestVolumeThreshold int `json:"request_volume_threshold"` | |
SleepWindow int `json:"sleep_window"` | |
ErrorPercentThreshold int `json:"error_percent_threshold"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment