// GetEndpointsByService returns the endpoints associated with a specific service.
GetEndpointsByService returns the endpoints associated with a specific service.
// GetEndpointsByService returns the endpoints associated with a specific service .
func (c *Context) GetEndpointsByService(serviceKey string) *v1.Endpoints {
	endpointsInterface, exist, err := c.Caches.Endpoints.GetByKey(serviceKey)
	if err != nil {
		glog.V(1).Infof("unable to get endpoints from store, error occured %s", err.Error())
		return nil
	}
	if !exist {
		glog.V(1).Infof("unable to get endpoints from store, no such service %s", serviceKey)
		return nil
	}
	endpoints := endpointsInterface.(*v1.Endpoints)
	return endpoints
}
func ( c * Context ) GetEndpointsByService ( serviceKey string ) * v1 . Endpoints { endpointsInterface , exist , err := c . Caches . Endpoints . GetByKey ( serviceKey ) if err != nil { glog . V ( 1 ) . Infof ( " " , err . Error ( ) ) return nil } if ! exist { glog . V ( 1 ) . Infof ( " " , serviceKey ) return nil } endpoints := endpointsInterface . ( * v1 . Endpoints ) return endpoints }
GetEndpointsByService returns the endpoints associated with a specific service.
GetEndpointsByService returns the endpoints associated with a specific service .