Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultStatus = "open" DefaultThreshold = 10 DefaultMaxRetry = 3 DefaultInterval = 30 )
Variables ¶
View Source
var ( CircuitCloseErr = errors.New("circuit has been closed due to too many failed request") ExceedMaxRetryErr = errors.New("circuit is in halfopen status and the retry time has exceed threshold") )
View Source
var (
CacheCircuitIsOpenErr = errors.New("cache circuit is open now!")
)
Functions ¶
func NewCacheCircuit ¶
Types ¶
type CircuitClient ¶
func NewCircuitClient ¶
func NewCircuitClient() *CircuitClient
func NewCircuitClientWithInsecureSSL ¶
func NewCircuitClientWithInsecureSSL() *CircuitClient
Click to show internal directories.
Click to hide internal directories.