types

package
v0.0.0-...-d5f6521 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequest

type HTTPRequest struct {
	R *http.Request
}

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

type HTTPResponse struct {
	R *http.Response
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL