gol/conf.go
Rinsvent e64e6eb2a3 Небольшой рефаткоринг
Удалил мусор
Добавил моки
Добавил тест
2024-09-24 23:24:06 +07:00

33 lines
738 B
Go

package gol
import (
"time"
)
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"`
}
type Configuration struct {
Stdout ConfigurationStdout `yaml:"console"`
File ConfigurationFile `yaml:"file"`
Sentry ConfigurationSentry `yaml:"sentry"`
}