mirror of
https://github.com/restic/rest-server.git
synced 2026-09-25 21:41:25 -07:00
Comment global variables
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user