retry alternatives and similar packages
Based on the "Go Tools" category.
Alternatively, view retry alternatives based on common mentions on social networks and blogs.
-
The Go Play Space
Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more -
typex
[TOOL/CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations. -
Viney's go-cache
A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern. -
gothanks
GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself. -
go-lock
go-lock is a lock library implementing read-write mutex and read-write trylock without starvation -
goroutines
It is an efficient, flexible, and lightweight goroutine pool. It provides an easy way to deal with concurrent tasks with limited resource. -
PDF to Image Converter Using Golang
This project will help you to convert PDF file to IMAGE using golang. -
go-james
DISCONTINUED. James is your butler and helps you to create, build, debug, test and run your Go projects -
docs
Automatically generate RESTful API documentation for GO projects - aligned with Open API Specification standard -
rescached
DISCONTINUED. [mirror] Resolver (DNS) cache daemon. See https://sr.ht/~shulhan/rescached [Moved to: https://github.com/shuLhan/rescached] -
channelize
A websocket framework to manage outbound streams. Allowing to have multiple channels per connection that includes public and private channels. -
modver
Compare two versions of a Go module to check the version-number change required (major, minor, or patchlevel), according to semver rules. -
num30/go-cache
An in-memory key:value store/cache (similar to Memcached) library that takes advantage of Go Generics -
IP2Location.io Command Line
IP2Location.io command line to query IP geolocation data from IP2Location.io API
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of retry or a related project?
README
retry
Small, full-featured, 100% test-covered retry package for golang
features
- small (~200 sloc), 100% test-covered codebase
- fully-customizable, you can specify number of retries, sleep (and sleep-jitter) between them and stdlog verbosity
- three ways to retry - single function, chain (one-by-one) and parallel execution
examples
simple
import (
"log"
"github.com/s0rg/retry"
)
try := retry.New()
// single
if err := try.Single("single-func", func() error {
return initSomeResource()
}); err != nil {
log.Fatal("retry:", err)
}
with config
import (
"log"
"time"
"github.com/s0rg/retry"
)
try := retry.New(
retry.Count(5),
retry.Parallelism(2),
retry.Sleep(time.Second*3),
retry.Jitter(time.Second/2),
retry.Verbose(true),
)
var (
dbh *sql.DB
kaf *kafka.Conn
red *redis.Conn
)
steps := []retry.Step{
{"database", func() (err error) {
dbh, err = sql.Open(...)
return
}},
{"kafka", func() (err error) {
kaf, err = kafka.Connect(...)
return
}},
{"redis", func() (err error) {
red, err = redis.Connect(...)
return
}},
}
// parallel execution
if err := try.Parallel(steps...); err != nil {
log.Fatal("retry:", err)
}
// at this point all tree resources will be avialaible
*Note that all licence references and agreements mentioned in the retry README section above
are relevant to that project's source code only.