server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApacheLogMiddleware added in v0.2.0

func ApacheLogMiddleware(next http.Handler) http.Handler

func DefaultLogMiddleware added in v0.2.0

func DefaultLogMiddleware(next http.Handler) http.Handler

func ProxyMiddleware added in v0.2.0

func ProxyMiddleware(next http.Handler) http.Handler

func ServerHeaderMiddleware added in v0.2.0

func ServerHeaderMiddleware(next http.Handler) http.Handler

Types

type Keyserver

type Keyserver struct {
	StaticPath string
}

func NewKeyserver

func NewKeyserver(staticPath string) *Keyserver

func (*Keyserver) ServeHTTP

func (k *Keyserver) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Webserver added in v0.2.0

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

func NewWebserver added in v0.2.0

func NewWebserver(path, addr string, readTimeout time.Duration) *Webserver

func (*Webserver) ListenAndServe added in v0.2.0

func (w *Webserver) ListenAndServe() error

func (*Webserver) RegisterMiddleware added in v0.2.0

func (w *Webserver) RegisterMiddleware(mwf mux.MiddlewareFunc)

func (*Webserver) Shutdown added in v0.2.0

func (w *Webserver) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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