// mergeConfigs accepts a list of projectConfigs each of which contains the
// encoding, metric and report configs for a particular project and aggregates
// all those into a single CobaltConfig proto.
mergeConfigs accepts a list of projectConfigs each of which contains the
encoding, metric and report configs for a particular project and aggregates
all those into a single CobaltConfig proto.
// mergeConfigs accepts a list of projectConfigs each of which contains the // encoding metric and report configs for a particular project and aggregates // all those into a single CobaltConfig proto .
func mergeConfigs(l []projectConfig) (s config.CobaltConfig) {
	for _, c := range l {
		s.EncodingConfigs = append(s.EncodingConfigs, c.projectConfig.EncodingConfigs...)
		s.MetricConfigs = append(s.MetricConfigs, c.projectConfig.MetricConfigs...)
		s.ReportConfigs = append(s.ReportConfigs, c.projectConfig.ReportConfigs...)
	}
	return s
}
func mergeConfigs ( l [ ] projectConfig ) ( s config . CobaltConfig ) { for _ , c := range l { s . EncodingConfigs = append ( s . EncodingConfigs , c . projectConfig . EncodingConfigs ... ) s . MetricConfigs = append ( s . MetricConfigs , c . projectConfig . MetricConfigs ... ) s . ReportConfigs = append ( s . ReportConfigs , c . projectConfig . ReportConfigs ... ) } return s }
mergeConfigs accepts a list of projectConfigs each of which contains the
encoding, metric and report configs for a particular project and aggregates
all those into a single CobaltConfig proto.
mergeConfigs accepts a list of projectConfigs each of which contains the encoding metric and report configs for a particular project and aggregates all those into a single CobaltConfig proto .