Comment global variables

This commit is contained in:
Zlatko Čalušić 2017-10-25 18:14:07 +02:00
parent b213d2a274
commit 9b89df0842
2 changed files with 3 additions and 0 deletions

View file

@ -34,6 +34,7 @@ import (
"time" "time"
) )
// CheckInterval represents how often we check for changes in htpasswd file.
const CheckInterval = 30 * time.Second const CheckInterval = 30 * time.Second
// Lookup passwords in a htpasswd file. The entries must have been created with -s for SHA encryption. // Lookup passwords in a htpasswd file. The entries must have been created with -s for SHA encryption.

2
mux.go
View file

@ -12,6 +12,7 @@ import (
"goji.io/pat" "goji.io/pat"
) )
// Config struct holds program configuration.
var Config = struct { var Config = struct {
Path string Path string
Listen string Listen string
@ -44,6 +45,7 @@ func logHandler(next http.Handler) http.Handler {
return handlers.CombinedLoggingHandler(accessLog, next) return handlers.CombinedLoggingHandler(accessLog, next)
} }
// NewMux is master HTTP multiplexer/router.
func NewMux() *goji.Mux { func NewMux() *goji.Mux {
mux := goji.NewMux() mux := goji.NewMux()