mirror of
https://github.com/chubin/wttr.in
synced 2025-01-26 10:45:01 +00:00
25 lines
368 B
Go
25 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,
|
||
|
},
|
||
|
}
|