Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogMiddleware ¶
type LogMiddleware struct {
// contains filtered or unexported fields
}
LogMiddleware - wraps adds logging to the query handlers.
func NewLogMiddleware ¶
func NewLogMiddleware(statsd *statsd.Client) *LogMiddleware
NewLogMiddleware - constructor of LogMiddleware.
type LoggedResponseWriter ¶
type LoggedResponseWriter struct {
// contains filtered or unexported fields
}
LoggedResponseWriter - wraps http.ResponseWriter. Supports the ability to read a previously recorded response status.
func (*LoggedResponseWriter) Header ¶
func (lrw *LoggedResponseWriter) Header() http.Header
Header returns the result of calling the Header() method of the wrapped http.ResponseWriter.
func (*LoggedResponseWriter) ResponseWriter ¶
func (lrw *LoggedResponseWriter) ResponseWriter() http.ResponseWriter
ResponseWriter returns wrapped ResponseWriter.
func (*LoggedResponseWriter) Status ¶
func (lrw *LoggedResponseWriter) Status() int
Status - returns the previously recorded response status.
func (*LoggedResponseWriter) Write ¶
func (lrw *LoggedResponseWriter) Write(data []byte) (int, error)
Write returns the result of calling the Write() method of the wrapped http.ResponseWriter.
func (*LoggedResponseWriter) WriteHeader ¶
func (lrw *LoggedResponseWriter) WriteHeader(status int)
WriteHeader returns the result of calling the WriteHeader() method of the wrapped http.ResponseWriter
Click to show internal directories.
Click to hide internal directories.