Fix more lint warnings

This commit is contained in:
Zac Bergquist
2015-05-24 22:52:34 -04:00
parent fd8490c689
commit e4b50aa814
21 changed files with 164 additions and 171 deletions

View File

@ -8,9 +8,10 @@ import (
"github.com/mholt/caddy/middleware"
)
// Logger is a basic request logging middleware.
type Logger struct {
Next middleware.Handler
Rules []LogRule
Rules []Rule
}
func (l Logger) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
@ -26,7 +27,8 @@ func (l Logger) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
return l.Next.ServeHTTP(w, r)
}
type LogRule struct {
// Rule configures the logging middleware.
type Rule struct {
PathScope string
OutputFile string
Format string