// GetEndpoints finds the list of endpoints of the service from etcd.
GetEndpoints finds the list of endpoints of the service from etcd.
// GetEndpoints finds the list of endpoints of the service from etcd .
func (s ConfigSourceEtcd) GetEndpoints(service string) (api.Endpoints, error) {
	key := fmt.Sprintf(registryRoot + "/endpoints/" + service)
	response, err := s.client.Get(key, true, false)
	if err != nil {
		glog.Errorf("Failed to get the key: %s %v", key, err)
		return api.Endpoints{}, err
	}
	var e api.Endpoints
	err = latest.Codec.DecodeInto([]byte(response.Node.Value), &e)
	return e, err
}
func ( s ConfigSourceEtcd ) GetEndpoints ( service string ) ( api . Endpoints , error ) { key := fmt . Sprintf ( registryRoot + " " + service ) response , err := s . client . Get ( key , true , false ) if err != nil { glog . Errorf ( " " , key , err ) return api . Endpoints { } , err } var e api . Endpoints err = latest . Codec . DecodeInto ( [ ] byte ( response . Node . Value ) , & e ) return e , err }
GetEndpoints finds the list of endpoints of the service from etcd.
GetEndpoints finds the list of endpoints of the service from etcd .
// Parse all the endpoint specifications in this value.