Documentation ¶
Index ¶
- Constants
- 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 ¶
View Source
const LogContext = "request_logs"
Variables ¶
This section is empty.
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.