Created
August 16, 2016 08:36
-
-
Save jacoelho/fe751072c82edc9a4ea72821faea4ba0 to your computer and use it in GitHub Desktop.
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
type Circuit struct { | |
TimeOut time.Duration // how long to wait for the execution | |
FailThreshold uint32 // how many fails until circuit is tripped | |
RetryThreshold uint32 // how many failed requests until try again | |
failuresCounter uint32 | |
retriesCounter uint32 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment