mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Comment global variables
This commit is contained in:
parent
b213d2a274
commit
9b89df0842
2 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
2
mux.go
2
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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue