Add cmd/config.go

chubin/logging
Igor Chubin 2 years ago
parent c77c1227d5
commit d9afb06ac5

@ -0,0 +1,24 @@
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,
},
}
Loading…
Cancel
Save