Help us shape the future of Go! Take the 2026 Go Developer Survey

storeerr

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package storeerr classifies the errors the control plane's stores (Postgres and Redis) return, so a caller can tell an outage that a retry outlasts from a failure that repeats on every attempt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transient

func Transient(err error) bool

Transient reports whether err is a store failure that a later retry of the same request can succeed past: the database or Redis was unreachable, restarting, failing over, out of connections, or timed out. It reads only the error's identity and codes, never its text, except for the reply prefixes Redis defines as its error codes.

A logical failure (a constraint violation, a missing key, bad input) is not transient, and neither is context.Canceled: a canceled request was abandoned by its caller, not failed by the store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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