module
0.0.0-20240403194558-b078d352f3fc
Repository: https://github.com/gostdlib/ops.git
Documentation: pkg.go.dev
# README
Ops
Packages for dealing with various operational issues, such as retrying function calls.
Introduction
The packages contained within this repository provide help around execution of operations. Operations here are defined as complex calls that usually involve remote systems.
Complex operations which involve remote systems can fail for different reasons and packages here help with dealing with the nature of those operations.
A quick look
retry/
: A set of packages for retrying operations- Use
retry/exponential
if you want:- Exponential retry of some operation
- The ability to customize your own retry policy
- The ability to visualize your retry policy
- The ability to transform errors before retrying (like automatic handling of gRPC, HTTP, or SQL errors)
- The ability to log retry attempts
- The ability to stop retrying on permanent errors
- The ability to influence the backoff with a retry timer set to a specific time
- Use
statemachine/
: A set of packages for creating functional state machines- Use
statemachine
if you want:- A simple state machine
- A state machine with OTEL tracing
- Low allocations
- A way to simplify complex sequential processing
- Easier ways to test than a sequential call chain
- Use
# Packages
No description provided by the author
Package statemachine provides a simple routing state machine implementation.