func DefaultOpenBackOff() backoff.BackOff {
	_backoff := backoff.NewExponentialBackOff()
	_backoff.MaxElapsedTime = 0
	_backoff.Reset()
	return _backoff
}
DefaultOpenBackOff returns defaultly used BackOff.
package circuitbreaker
import (
	"context"
	"errors"
	"fmt"
	"sync"
	"time"
	backoff "github.com/cenkalti/backoff/v3"
	"github.com/facebookgo/clock"
)
var (
	ErrOpen = errors.New("circuit breaker open")
	DefaultTripFunc = NewTripFuncThreshold(10)
)
const (
	DefaultInterval             = 1 * time.Second
	DefaultHalfOpenMaxSuccesses = 4
)
type State string
const (
	StateClosed   State = "closed"
	StateOpen     State = "open"
	StateHalfOpen State = "half-open"
)