mirror of https://github.com/chubin/wttr.in
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
368 B
25 lines
368 B
![]()
2 years ago
|
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,
|
||
|
},
|
||
|
}
|