diff --git a/cmd/config.go b/cmd/config.go new file mode 100644 index 0000000..9aab0d0 --- /dev/null +++ b/cmd/config.go @@ -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, + }, +}