handler

package
v0.0.0-...-3423bc7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler - wraps a http.Handler along with a logger associated with it.

func NewHandler

func NewHandler(h http.HandlerFunc, l *logger.Logger) *Handler

NewHandler - create instance of Handler with supplied http.Handler and logger.Logger

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP - handles http request coming to this Handler

Jump to

Keyboard shortcuts

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