code: func (ec *EndpointConfig) defaults() {
  	if ec.Timeout <= 0 {
  		ec.Timeout = time.Second
  	}
  
  	if ec.Threshold <= 0 {
  		ec.Threshold = 10
  	}
  
  	if ec.Backoff <= 0 {
  		ec.Backoff = time.Second
  	}
  
  	if ec.Transport == nil {
  		ec.Transport = http.DefaultTransport.(*http.Transport)
  	}
  }
docs: // defaults set any zero-valued fields to a reasonable default.