code: func PluginConfig(pluginCfg config.PluginConfig, cfg *Config, pluginName infra.PluginName) error {
  	portFlag := flag.Lookup(httpPortFlag(pluginName))
  
  	if portFlag != nil && portFlag.Value != nil && portFlag.Value.String() != "" && cfg != nil {
  		cfg.Endpoint = DefaultHost + ":" + portFlag.Value.String()
  	}
  
  	if pluginCfg != nil {
  		_, err := pluginCfg.LoadValue(cfg)
  		if err != nil {
  			return err
  		}
  	}
  
  	FixConfig(cfg)
  
  	return nil
  }
docs: // PluginConfig tries :
  // - to load flag <plugin-name>-port and then FixConfig() just in case
  // - alternatively <plugin-name>-config and then FixConfig() just in case
  // - alternatively DefaultConfig()