Update 'parser' struct annotation in config.go

The 'parser' struct in config.go has been updated with Fig configuration annotation. This allows ease of configuration as it sources the configuration options from the environment, making the code cleaner and more flexible.
This commit is contained in:
Winni Neessen 2023-12-22 16:08:54 +01:00
parent 5d72bcac91
commit f02d5be680
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -45,7 +45,7 @@ type Config struct {
Parser struct {
Type string `fig:"type" validate:"required"`
Timeout time.Duration `fig:"timeout" default:"500ms"`
}
} `fig:"parser"`
internal struct {
ParserType parsesyslog.ParserType
}