circuitbreaker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CB

CB - Returns instance of gobreaker.CircuitBreaker.

func InitCircuitBreaker

func InitCircuitBreaker(name string, config CircuitBreaker)

InitCircuitBreaker - Initialise the Circuit Breaker.

Types

type CircuitBreaker

type CircuitBreaker struct {
	Threshold   uint32
	FailureRate float64
	Interval    time.Duration
	Timeout     time.Duration
	MaxRequests uint32
}

CircuitBreaker - Settings for redis circuit breaker.

Jump to

Keyboard shortcuts

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