breaker

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBreakerOpen = errors.New("circuit breaker is open")

ErrBreakerOpen is the error returned from PreHandle() when the function is not executed because the breaker is currently open.

Functions

This section is empty.

Types

type CircuitBreakerConfig

type CircuitBreakerConfig struct {
	ErrorThreshold   int `yaml:"error_threshold" json:"error_threshold"`
	SuccessThreshold int `yaml:"success_threshold" json:"success_threshold"`
	Timeout          int `yaml:"timeout" json:"timeout"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL