const connectionTimeout … type EtcdConnection … func (EtcdConnection) serverReachable(connURL *url.URL) bool { … } func parseServerURI(serverURI string) (*url.URL, error) { … } // CheckEtcdServers will attempt to reach all etcd servers once. If any // can be reached, return true. func (con EtcdConnection) CheckEtcdServers() (done bool, err error) { … }