2024-09-21 12:45:50 +03:00
|
|
|
package gol
|
2024-09-21 05:46:31 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2024-09-24 19:24:06 +03:00
|
|
|
type ConfigurationStdout struct {
|
|
|
|
Level string `yaml:"level"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ConfigurationFile struct {
|
|
|
|
Enabled bool `yaml:"enabled"`
|
|
|
|
Level string `yaml:"level"`
|
|
|
|
Filename string `yaml:"filename"`
|
|
|
|
MaxSize int `yaml:"maxsize"`
|
|
|
|
MaxAge int `yaml:"maxage"`
|
|
|
|
MaxBackups int `yaml:"maxbackups"`
|
|
|
|
LocalTime bool `yaml:"localtime"`
|
|
|
|
Compress bool `yaml:"compress"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ConfigurationSentry struct {
|
|
|
|
Level string `yaml:"level"`
|
|
|
|
DSN string `yaml:"dsn"`
|
|
|
|
Timeout time.Duration `yaml:"timeout"`
|
|
|
|
}
|
|
|
|
|
2024-09-21 05:46:31 +03:00
|
|
|
type Configuration struct {
|
2024-09-24 19:24:06 +03:00
|
|
|
Stdout ConfigurationStdout `yaml:"console"`
|
|
|
|
File ConfigurationFile `yaml:"file"`
|
|
|
|
Sentry ConfigurationSentry `yaml:"sentry"`
|
2024-09-21 05:46:31 +03:00
|
|
|
}
|