circuitbreaking

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 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
Package mock provides mock implementations of the circuitbreaking package's interfaces.
Package mock provides mock implementations of the circuitbreaking package's interfaces.
Package partitioned provides a circuit breaker that is partitioned by key.
Package partitioned provides a circuit breaker that is partitioned by key.
mock
Package mock provides a moq-generated mock implementation of the partitioned package's KeyedCircuitBreaker interface.
Package mock provides a moq-generated mock implementation of the partitioned package's KeyedCircuitBreaker interface.

Jump to

Keyboard shortcuts

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