echo icon indicating copy to clipboard operation
echo copied to clipboard

Building an in-built retryMax Middleware in Echo

Open kitarp29 opened this issue 1 year ago • 0 comments

Issue Description

I am building a Project of my own in Echo. And I wanted to make it "Production ready":

  • https://github.com/kitarp29/kube-ez/issues/44

But to my surprise this functionality is not in-built in Echo. Express in NodeJS has this in-built! Example:

app.use(retryMax({
  maxAttempts: 5, 
  minTimeout: 1000, 
  maxTimeout: 5000 
}));

For now I am building an implementation of my own. But it would be great if it is a part of this framework! I can work on if it needed!

Checklist:

  • [X] Dependencies installed
  • [X] No typos
  • [X] Searched existing issues and docs

Expected behaviour

NA

Actual behaviour

NA

Steps to reproduce

NA

Working code to debug

NA

package main

func main() {
}

Version/commit

Well any version

kitarp29 avatar Aug 16 '23 19:08 kitarp29