mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-26 18:02:01 +08:00
29 lines
482 B
Go
29 lines
482 B
Go
package version
|
|
|
|
import "github.com/SigNoz/signoz/pkg/factory"
|
|
|
|
type BannerConfig struct {
|
|
Enabled bool `mapstructure:"enabled"`
|
|
}
|
|
|
|
type Config struct {
|
|
Banner BannerConfig `mapstructure:"banner"`
|
|
}
|
|
|
|
func NewConfigFactory() factory.ConfigFactory {
|
|
return factory.NewConfigFactory(factory.MustNewName("version"), newConfig)
|
|
|
|
}
|
|
|
|
func newConfig() factory.Config {
|
|
return Config{
|
|
Banner: BannerConfig{
|
|
Enabled: true,
|
|
},
|
|
}
|
|
}
|
|
|
|
func (c Config) Validate() error {
|
|
return nil
|
|
}
|