wttr.in/cmd/config.go
2022-11-19 19:19:42 +01:00

24 lines
368 B
Go

package main
// Config of the program.
type Config struct {
Logging
}
// Logging configuration.
type Logging struct {
// AccessLog path.
AccessLog string
// Interval between access log flushes, in seconds.
Interval int
}
// Conf contains the current configuration.
var Conf = Config{
Logging{
AccessLog: "/wttr.in/log/access.log",
Interval: 300,
},
}