Skip to content

Instantly share code, notes, and snippets.

@aladine
Created August 25, 2018 15:36
Show Gist options
  • Save aladine/18b38b37f838c1938131f67da0648e92 to your computer and use it in GitHub Desktop.
Save aladine/18b38b37f838c1938131f67da0648e92 to your computer and use it in GitHub Desktop.
Circuit Setting struct
// 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