// GetService returns the service identified by the key.
GetService returns the service identified by the key.
// GetService returns the service identified by the key .
func (c *Context) GetService(serviceKey string) *v1.Service {
	serviceInterface, exist, err := c.Caches.Service.GetByKey(serviceKey)
	if err != nil {
		glog.V(1).Infof("unable to get service from store, error occured %s", err.Error())
		return nil
	}
	if !exist {
		glog.V(1).Infof("unable to get service from store, no such service %s", serviceKey)
		return nil
	}
	service := serviceInterface.(*v1.Service)
	return service
}
func ( c * Context ) GetService ( serviceKey string ) * v1 . Service { serviceInterface , exist , err := c . Caches . Service . GetByKey ( serviceKey ) if err != nil { glog . V ( 1 ) . Infof ( " " , err . Error ( ) ) return nil } if ! exist { glog . V ( 1 ) . Infof ( " " , serviceKey ) return nil } service := serviceInterface . ( * v1 . Service ) return service }
GetService returns the service identified by the key.
GetService returns the service identified by the key .