Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer()
Types ¶
type ALogger ¶
type ALogger interface {
Println(v ...interface{})
Printf(format string, v ...interface{})
}
ALogger interface
type Logger ¶
type Logger struct {
// ALogger implements just enough log.Logger interface to be compatible with other implementations
ALogger
}
Logger is a middleware handler that logs the request as it goes in and the response as it goes out.
func (*Logger) ServeHTTP ¶
func (l *Logger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.