my-log/config/types.go

25 lines
382 B
Go
Raw Normal View History

package config
type Config struct {
2024-03-07 21:19:45 -06:00
Input Input
Outputs Outputs `mapstructure:"output"`
2024-03-07 21:19:45 -06:00
Formatters Formatters
}
type Input struct {
Path string
Recurse bool
Ext string
DotFolder bool `mapstructure:"dotFolder"`
}
2024-02-09 09:44:35 -06:00
type Outputs map[string]Output
type Output struct {
Enabled bool
Config map[string]any
}
2024-02-09 09:44:35 -06:00
type Formatters struct {
Preferred string
}