wttr.in/cmd/config.go

25 lines
368 B
Go
Raw Normal View History

2022-11-19 18:19:42 +00:00
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,
},
}