CheckRetry can be used to control the policy for failed requests and modify the cluster if needed. The client calls it before sending requests again, and stops retrying if CheckRetry returns some error. The cases that this function needs to handle include no response and unexpected http status code of response. If CheckRetry is nil, client will call the default one `DefaultCheckRetry`. Argument cluster is the etcd.Cluster object that these requests have been made on. Argument numReqs is the number of http.Requests that have been made so far. Argument lastResp is the http.Responses from the last request. Argument err is the reason of the failure.

CheckRetry is referenced in 0 repositories