api

package
v0.0.0-...-e39762b Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context) *zap.Logger

Extract returns the *zap.Logger set by zapmw. If no logger is found in the context, zap.NewNop() is returned.

func New

func New(logger *zap.Logger) func(next http.Handler) http.Handler

New returns a new logging middleware using the provided *zap.Logger

Types

type ResponseWriterWrapper

type ResponseWriterWrapper struct {
	// contains filtered or unexported fields
}

func (*ResponseWriterWrapper) Header

func (i *ResponseWriterWrapper) Header() http.Header

func (*ResponseWriterWrapper) Write

func (i *ResponseWriterWrapper) Write(buf []byte) (int, error)

func (*ResponseWriterWrapper) WriteHeader

func (i *ResponseWriterWrapper) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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