mirror of
https://github.com/wneessen/logranger.git
synced 2024-11-22 12:50:50 +01:00
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:
parent
5d72bcac91
commit
f02d5be680
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ type Config struct {
|
||||||
Parser struct {
|
Parser struct {
|
||||||
Type string `fig:"type" validate:"required"`
|
Type string `fig:"type" validate:"required"`
|
||||||
Timeout time.Duration `fig:"timeout" default:"500ms"`
|
Timeout time.Duration `fig:"timeout" default:"500ms"`
|
||||||
}
|
} `fig:"parser"`
|
||||||
internal struct {
|
internal struct {
|
||||||
ParserType parsesyslog.ParserType
|
ParserType parsesyslog.ParserType
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue