code: func (s *StoreToEndpointsLister) GetServiceEndpoints(svc *api.Service) (ep api.Endpoints, err error) {
  	for _, m := range s.Store.List() {
  		ep = *m.(*api.Endpoints)
  		if svc.Name == ep.Name && svc.Namespace == ep.Namespace {
  			return ep, nil
  		}
  	}
  	err = fmt.Errorf("could not find endpoints for service: %v", svc.Name)
  	return
  }
docs: // GetServiceEndpoints returns the endpoints of a service, matched on service name.