code: func (s *Store) ConfigEntry(ws memdb.WatchSet, kind, name string) (uint64, structs.ConfigEntry, error) {
  	tx := s.db.Txn(false)
  	defer tx.Abort()
  
  	// Get the index
  	idx := maxIndexTxn(tx, configTableName)
  
  	// Get the existing config entry.
  	watchCh, existing, err := tx.FirstWatch(configTableName, "id", kind, name)
  	if err != nil {
  		return 0, nil, fmt.Errorf("failed config entry lookup: %s", err)
  	}
  	ws.Add(watchCh)
  	if existing == nil {
  		return idx, nil, nil
  	}
  
  	conf, ok := existing.(structs.ConfigEntry)
  	if !ok {
  		return 0, nil, fmt.Errorf("config entry %q (%s) is an invalid type: %T", name, kind, conf)
  	}
  
  	return idx, conf, nil
  }
docs: // ConfigEntry is called to get a given config entry.