Skip to content

Instantly share code, notes, and snippets.

@aladine
Created August 25, 2018 15:36
Show Gist options
  • Select an option

  • Save aladine/18b38b37f838c1938131f67da0648e92 to your computer and use it in GitHub Desktop.

Select an option

Save aladine/18b38b37f838c1938131f67da0648e92 to your computer and use it in GitHub Desktop.

Revisions

  1. aladine created this gist Aug 25, 2018.
    8 changes: 8 additions & 0 deletions command.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    // 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"`
    }