func (r *StopRetrier) Retry(ctx context.Context, retry int, req *http.Request, resp *http.Response, err error) (time.Duration, bool, error) {
	return 0, false, nil
}
Retry does not retry.
package elastic
import (
	"context"
	"net/http"
	"time"
)
type RetrierFunc func(context.Context, int, *http.Request, *http.Response, error) (time.Duration, bool, error)
type Retrier interface {
	Retry(ctx context.Context, retry int, req *http.Request, resp *http.Response, err error) (time.Duration, bool, error)
}
type StopRetrier struct {
}
func NewStopRetrier() *StopRetrier {
	return &StopRetrier{}
}