middleware

package
v74.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Access

func Access(accessLogger AccessLogger, host string, port uint32) func(HttpHandler) *AccessHandler

Types

type AccessHandler

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

func (*AccessHandler) ServeHTTP

func (h *AccessHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type AccessLogger

type AccessLogger interface {
	LogAccess(req *http.Request, host string, port uint32) error
}

type HttpHandler

type HttpHandler interface {
	ServeHTTP(http.ResponseWriter, *http.Request)
}

Jump to

Keyboard shortcuts

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