Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugLogger ¶
func (DebugLogger) Log ¶
func (l DebugLogger) Log(message string)
func (*DebugLogger) LogRequest ¶
func (l *DebugLogger) LogRequest(request RequestInfo)
func (DebugLogger) LogResponse ¶
func (l DebugLogger) LogResponse(response ResponseInfo)
type DefaultLogger ¶
type DefaultLogger struct { }
func (DefaultLogger) Log ¶
func (l DefaultLogger) Log(message string)
func (*DefaultLogger) LogRequest ¶
func (l *DefaultLogger) LogRequest(request RequestInfo)
func (DefaultLogger) LogResponse ¶
func (l DefaultLogger) LogResponse(response ResponseInfo)
type Logger ¶
type Logger interface { Log(message string) LogRequest(request RequestInfo) LogResponse(response ResponseInfo) }
type RequestInfo ¶
type RequestInfo struct { Method string Url string Protocol string Header map[string][]string Body []byte }
func NewRequestInfo ¶
Click to show internal directories.
Click to hide internal directories.