From de78273f080634b57cc0e0e7c3e05e3ff03d0478 Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 9 Oct 2019 18:32:29 +0200 Subject: metrics exposed on / --- src/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.go') diff --git a/src/main.go b/src/main.go index a52c043..b974704 100644 --- a/src/main.go +++ b/src/main.go @@ -8,6 +8,11 @@ import ( var ( port *int + + // map the username to the amount of challenges solved + // TODO: challenges should get a score and the score should be exposed + // instead of "solved" or "not solved". + userScore map[string]int ) func main() { @@ -19,9 +24,7 @@ func main() { go func() { for { // get stats - log.Printf("Fetching the stats") listDockerContainers() - log.Printf("Done fetching the stats") time.Sleep(1 * time.Second) } }() -- cgit 1.4.1