Documentation ¶
Index ¶
- Variables
- type DebugLogger
- func (l DebugLogger) DebugPrintError(err error)
- func (l DebugLogger) DebugPrintGetRequest(url string)
- func (l DebugLogger) DebugPrintPostJSONRequest(url string, body []byte)
- func (l DebugLogger) DebugPrintPostMultipartRequest(url string, body []byte)
- func (l DebugLogger) DebugPrintStringResponse(str string)
- func (l DebugLogger) DecodeJSON(body []byte, v interface{}) error
- type DefaultLogger
- func (l DefaultLogger) DebugPrintError(err error)
- func (l DefaultLogger) DebugPrintGetRequest(url string)
- func (l DefaultLogger) DebugPrintPostJSONRequest(url string, body []byte)
- func (l DefaultLogger) DebugPrintPostMultipartRequest(url string, body []byte)
- func (l DefaultLogger) DebugPrintStringResponse(str string)
- func (l DefaultLogger) DecodeJSON(body []byte, v interface{}) error
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Default = new(DefaultLogger) Debug = new(DebugLogger) )
Functions ¶
This section is empty.
Types ¶
type DebugLogger ¶
type DebugLogger struct{}
func (DebugLogger) DebugPrintError ¶
func (l DebugLogger) DebugPrintError(err error)
func (DebugLogger) DebugPrintGetRequest ¶
func (l DebugLogger) DebugPrintGetRequest(url string)
func (DebugLogger) DebugPrintPostJSONRequest ¶
func (l DebugLogger) DebugPrintPostJSONRequest(url string, body []byte)
func (DebugLogger) DebugPrintPostMultipartRequest ¶
func (l DebugLogger) DebugPrintPostMultipartRequest(url string, body []byte)
func (DebugLogger) DebugPrintStringResponse ¶
func (l DebugLogger) DebugPrintStringResponse(str string)
func (DebugLogger) DecodeJSON ¶ added in v1.1.1
func (l DebugLogger) DecodeJSON(body []byte, v interface{}) error
type DefaultLogger ¶
type DefaultLogger struct{}
func (DefaultLogger) DebugPrintError ¶
func (l DefaultLogger) DebugPrintError(err error)
func (DefaultLogger) DebugPrintGetRequest ¶
func (l DefaultLogger) DebugPrintGetRequest(url string)
func (DefaultLogger) DebugPrintPostJSONRequest ¶
func (l DefaultLogger) DebugPrintPostJSONRequest(url string, body []byte)
func (DefaultLogger) DebugPrintPostMultipartRequest ¶
func (l DefaultLogger) DebugPrintPostMultipartRequest(url string, body []byte)
func (DefaultLogger) DebugPrintStringResponse ¶
func (l DefaultLogger) DebugPrintStringResponse(str string)
func (DefaultLogger) DecodeJSON ¶ added in v1.1.1
func (l DefaultLogger) DecodeJSON(body []byte, v interface{}) error
Click to show internal directories.
Click to hide internal directories.