circuitbreaking

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package circuitbreaking implements the circuit breaker pattern for managing service availability and preventing cascading failures.

Index

Constants

This section is empty.

Variables

View Source
var ErrCircuitBroken = errors.New("service circuit broken")

ErrCircuitBroken is returned when a circuit breaker has tripped.

Functions

This section is empty.

Types

type CircuitBreaker

type CircuitBreaker interface {
	Failed()
	Succeeded()
	CanProceed() bool
	CannotProceed() bool
}

CircuitBreaker tracks failures and successes to determine whether an operation should proceed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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