zap

package
v1.89.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v1.47.0

type Handler struct {
	http.Handler
	// contains filtered or unexported fields
}

Handler for zap.

func NewHandler added in v1.47.0

func NewHandler(params HandlerParams) *Handler

NewHandler for zap.

func (*Handler) ServeHTTP added in v1.47.0

func (h *Handler) ServeHTTP(resp http.ResponseWriter, req *http.Request)

ServeHTTP or zap.

type HandlerParams added in v1.65.0

type HandlerParams struct {
	Logger  *zap.Logger
	Handler http.Handler
}

HandlerParams for zap.

type RoundTripper

type RoundTripper struct {
	http.RoundTripper
	// contains filtered or unexported fields
}

RoundTripper for zap.

func NewRoundTripper

func NewRoundTripper(params RoundTripperParams) *RoundTripper

NewRoundTripper for zap.

func (*RoundTripper) RoundTrip

func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip for zap.

type RoundTripperParams added in v1.65.0

type RoundTripperParams struct {
	Logger       *zap.Logger
	RoundTripper http.RoundTripper
}

RoundTripperParams for zap.

Jump to

Keyboard shortcuts

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