Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRequest ¶
HTTPRequest implements zapcore.ObjectMarshaller. It is supposed to be used to wrap *http.Request so that it can be passed to Zap and marshalled properly:
zap.Object("http_request", types.HTTPRequest{req})
func (HTTPRequest) MarshalLogObject ¶
func (req HTTPRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error
MarshalLogObject implements zapcore.ObjectMarshaller interface.
type HTTPResponse ¶
HTTPResponse implements zapcore.ObjectMarshaller. It is supposed to be used to wrap *http.Response so that it can be passed to Zap and marshalled properly:
zap.Object("http_response", types.HTTPResponse{res})
func (HTTPResponse) MarshalLogObject ¶
func (res HTTPResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error
MarshalLogObject implements zapcore.ObjectMarshaller interface.
Click to show internal directories.
Click to hide internal directories.