code: func LoadConfig(configFile string) (cfg interface{}, err error) {
  	b, err := ioutil.ReadFile(configFile)
  	if err != nil {
  		return nil, err
  	}
  
  	var s SentinelConfig
  	err = yaml.Unmarshal(b, &s)
  	if err != nil {
  		return nil, err
  	}
  	if s.MasterName != "" {
  		return s, nil
  	}
  
  	n := NodeConfig{}
  	err = yaml.Unmarshal(b, &n)
  	if err != nil {
  		return nil, err
  	}
  	if n.Endpoint != "" {
  		return n, nil
  	}
  
  	c := ClusterConfig{}
  	err = yaml.Unmarshal(b, &c)
  	if err != nil {
  		return nil, err
  	}
  	return c, nil
  }
docs: // LoadConfig Loads the given configFile and returns appropriate config instance.