From 4443b942b080c7a27a87e3f9660835a4504fed77 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 23 Sep 2019 13:29:45 +0200 Subject: added more comments --- server.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index 586d962..49dfb2b 100644 --- a/server.go +++ b/server.go @@ -11,8 +11,19 @@ import ( ) var ( + // Store a list of categories categories []string - port int + + // Map a category to it's age on disk + // If a category is downloaded, it is added to this map with it's Unix epoch + // timestamp. + // If the category is too old, re-download it + // TODO: Define what "to old" acutually means and what default value it + // might get + categoryAge = make(map[string]int) + + // Define the port the server should listen on + port int ) func main() { -- cgit 1.4.1