mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-25 19:40:24 +00:00
### Summary A config package based on https://github.com/open-telemetry/opentelemetry-collector/blob/main/confmap/confmap.go for signoz. #### Related Issues / PR's This is a part of https://github.com/SigNoz/signoz/pull/5710
10 lines
315 B
Go
10 lines
315 B
Go
package confmap
|
|
|
|
// Config is an interface that defines methods for creating and validating configurations.
|
|
type Config interface {
|
|
// New creates a new instance of the configuration with default values.
|
|
NewWithDefaults() Config
|
|
// Validate the configuration and returns an error if invalid.
|
|
Validate() error
|
|
}
|