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()