circuitbreaking

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 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
Package mock provides mock implementations of the circuitbreaking package's interfaces.
Package mock provides mock implementations of the circuitbreaking package's interfaces.

Jump to

Keyboard shortcuts

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