diff options
-rw-r--r-- | server.go | 13 |
1 files changed, 12 insertions, 1 deletions
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() { |