mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-06 12:54:40 +08:00
Fix more lint warnings
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user