mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-02 06:20:40 +08: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
|
|
}
|