From 9b89df0842da5c4c3c256e73ec160d4d6005f717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zlatko=20=C4=8Calu=C5=A1i=C4=87?= Date: Wed, 25 Oct 2017 18:14:07 +0200 Subject: [PATCH] Comment global variables --- htpasswd.go | 1 + mux.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/htpasswd.go b/htpasswd.go index 2527252..1a6e4d1 100644 --- a/htpasswd.go +++ b/htpasswd.go @@ -34,6 +34,7 @@ import ( "time" ) +// CheckInterval represents how often we check for changes in htpasswd file. const CheckInterval = 30 * time.Second // Lookup passwords in a htpasswd file. The entries must have been created with -s for SHA encryption. diff --git a/mux.go b/mux.go index 86d3c70..0fa5655 100644 --- a/mux.go +++ b/mux.go @@ -12,6 +12,7 @@ import ( "goji.io/pat" ) +// Config struct holds program configuration. var Config = struct { Path string Listen string @@ -44,6 +45,7 @@ func logHandler(next http.Handler) http.Handler { return handlers.CombinedLoggingHandler(accessLog, next) } +// NewMux is master HTTP multiplexer/router. func NewMux() *goji.Mux { mux := goji.NewMux()