all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 71433@debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Subject: [bug#71433] [PATCH 2/6] gnu: Add go-github-com-cenkalti-backoff-v4.
Date: Sat,  8 Jun 2024 14:44:03 +0300	[thread overview]
Message-ID: <cc447cee3d37f398feb761b4babc44f930625444.1717846795.git.poptsov.artyom@gmail.com> (raw)
In-Reply-To: <cover.1717846795.git.poptsov.artyom@gmail.com>

* gnu/packages/golang-web.scm (go-github-com-cenkalti-backoff-v4): New variable.

Change-Id: I15ea42bdb1d3ad9a16433e5c6fa689650beb15ea
---
 gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 68534ecc9a..367ecfce71 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -456,6 +456,35 @@ (define-public go-github-com-bep-golibsass
      "This package provides SCSS compiler support for Go applications.")
     (license license:expat)))
 
+(define-public go-github-com-cenkalti-backoff-v4
+  (package
+    (name "go-github-com-cenkalti-backoff-v4")
+    (version "4.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/cenkalti/backoff")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1pwr7fzxgngb073q98qrz1f90bkk3pljynif6jl5a6q6kcsn7xf1"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:go go-1.21
+           #:import-path "github.com/cenkalti/backoff/v4"))
+    (home-page "https://github.com/cenkalti/backoff")
+    (synopsis "The exponential backoff algorithm in Go")
+    (description "This is a Go port of the exponential backoff algorithm from
+@url{https://github.com/google/google-http-java-client/blob/da1aa993e90285ec18579f1553339b00e19b3ab5/google-http-client/src/main/java/com/google/api/client/util/ExponentialBackOff.java,
+Google's HTTP Client Library for Java}.
+
+@url{http://en.wikipedia.org/wiki/Exponential_backoff, Exponential backoff} is an
+algorithm that uses feedback to multiplicatively decrease the rate of some process,
+in order to gradually find an acceptable rate.  The retries exponentially increase
+and stop increasing when a certain threshold is met.")
+    (license license:expat)))
+
 (define-public go-github-com-chris-ramon-douceur
   (package
     (name "go-github-com-chris-ramon-douceur")
-- 
2.45.1





  parent reply	other threads:[~2024-06-08 11:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-08 11:42 [bug#71433] [PATCH 0/6] gnu: kubo: Unbundle more Go packages Artyom V. Poptsov
2024-06-08 11:44 ` [bug#71433] [PATCH 1/6] gnu: Add go-github-com-elgris-jsondiff Artyom V. Poptsov
2024-06-08 11:44 ` Artyom V. Poptsov [this message]
2024-06-08 11:44 ` [bug#71433] [PATCH 3/6] gnu: kubo: Unbundle go-github-com-cenkalti-backoff-v4 Artyom V. Poptsov
2024-06-08 11:44 ` [bug#71433] [PATCH 4/6] gnu: go-gopkg-in-cheggaaa-pb-v1: Update to 1.0.29 Artyom V. Poptsov
2024-06-08 11:44 ` [bug#71433] [PATCH 5/6] gnu: go-gopkg-in-cheggaaa-pb-v1: Rename to go-github-com-cheggaaa-pb-v1 Artyom V. Poptsov
2024-06-08 11:44 ` [bug#71433] [PATCH 6/6] gnu: kubo: go-github-com-cheggaaa-pb-v1 Artyom V. Poptsov
2024-06-11  9:38 ` bug#71433: [PATCH 0/6] gnu: kubo: Unbundle more Go packages Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc447cee3d37f398feb761b4babc44f930625444.1717846795.git.poptsov.artyom@gmail.com \
    --to=poptsov.artyom@gmail.com \
    --cc=71433@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.