my-log/config/types.go
Dan Jones a61af1b4b3 Use dot as folder separator
Also don't add dot if no extension
2024-02-26 19:30:32 -06:00

28 lines
503 B
Go

package config
type Config struct {
Input Input
Outputs Outputs `toml:"output"`
}
type Input struct {
Path string `env:"LOG_PATH"`
Recurse bool `env:"LOG_RECURSE"`
Ext string `env:"LOG_EXT"`
DotFolder bool `env:"LOG_DOT_FOLDER"`
}
type Outputs map[string]Output
type Output struct {
Enabled bool
Config map[string]any
}
type Stdout struct {
Json bool `env:"LOG_STDOUT_JSON" mapstructure:"json"`
}
type stdoutEnabled struct {
Enabled bool `env:"LOG_STDOUT_ENABLED"`
}