code: func (r *EtcdRegistry) Unit(name string) (*job.Unit, error) {
  	key := r.prefixed(jobPrefix, name)
  	opts := &etcd.GetOptions{
  		Recursive: true,
  	}
  	res, err := r.kAPI.Get(context.Background(), key, opts)
  	if err != nil {
  		if isEtcdError(err, etcd.ErrorCodeKeyNotFound) {
  			err = nil
  		}
  		return nil, err
  	}
  
  	return r.dirToUnit(res.Node, r.getUnitByHash)
  }
docs: // Unit retrieves the Unit by the given name from the Registry. Returns nil if
  // no such Unit exists, and any error encountered.