Documentation ¶
Index ¶
- Variables
- func Error(r *http.Request, v ...interface{})
- func Errorf(r *http.Request, format string, v ...interface{})
- func Info(r *http.Request, v ...interface{})
- func Infof(r *http.Request, format string, v ...interface{})
- func StartHttp(host string, port int, handler http.Handler) error
- func StartHttps(host string, port int, certFile, keyFile string, handler http.Handler) error
- func StartServer(srv *http.Server) error
- type LogCollector
Constants ¶
This section is empty.
Variables ¶
View Source
var LogContext = contextKey("request_logs")
Functions ¶
func StartHttps ¶
func StartServer ¶
Types ¶
type LogCollector ¶
type LogCollector struct { Messages []string // contains filtered or unexported fields }
func (*LogCollector) Append ¶
func (lc *LogCollector) Append(msg string)
func (*LogCollector) Flush ¶
func (lc *LogCollector) Flush() string
Click to show internal directories.
Click to hide internal directories.