s3-orchestrator

store

import "github.com/afreidah/s3-orchestrator/internal/store"

Database circuit breaker factory plus the error filter used by the driver-level DBTX/DB wrappers. The CB instance is a first-class DI-registered value; consumers that need lifecycle controls (IsHealthy, ResetStaleProbe) invoke *breaker.CircuitBreaker directly.

Index

func NewDatabaseBreaker

func NewDatabaseBreaker(cfg config.CircuitBreakerConfig) *breaker.CircuitBreaker

NewDatabaseBreaker returns the circuit breaker used to guard metadata store calls. It treats S3Error, ErrNoSpaceAvailable, and “no rows” sentinels as application-level signals that should not trip the circuit. Wires the telemetry hook so CircuitBreakerState / CircuitBreakerTransitionsTotal are populated.

Generated by gomarkdoc