From d9afb06ac5310655e11f96f750ffeb2f4e336ab5 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sat, 19 Nov 2022 19:19:42 +0100 Subject: [PATCH] Add cmd/config.go --- cmd/config.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cmd/config.go 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, + }, +}