mirror of
https://github.com/chubin/wttr.in
synced 2025-01-12 12:08:47 +00:00
24 lines
368 B
Go
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,
|
|
},
|
|
}
|