Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkLongPolling ¶
func MarkLongPolling(resp http.ResponseWriter, req *http.Request)
MarkLongPolling marks the request is a long-polling request, and the logger may output different message for it
func NewLoggerHandler ¶
NewLoggerHandler is a handler that will log routing to the router log taking account of routing information
func UpdateFuncInfo ¶
UpdateFuncInfo updates a context's func info
func UpdatePanicError ¶
UpdatePanicError updates a context's error info, a panic may be recovered by other middlewares, but we still need to know that.
Types ¶
type FuncInfo ¶
type FuncInfo struct {
// contains filtered or unexported fields
}
FuncInfo contains information about the function to be logged by the router log
func GetFuncInfo ¶
GetFuncInfo returns the FuncInfo for a provided function and friendlyname
Click to show internal directories.
Click to hide internal directories.