http

package module
v0.0.0-...-91057d5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

func RequestHandler

func RequestHandler(routes []Route, middlewares ...Middleware) http.Handler

func UploadFileHandler

func UploadFileHandler(app app.AppConfig) http.Handler

Types

type Middleware

type Middleware func(handler http.Handler) http.Handler

type Route

type Route struct {
	Pattern string
	Handler http.Handler
}

func Routes

func Routes(app app.AppConfig) []Route

type Server

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

func ServerInstance

func ServerInstance(handler http.Handler) *Server

func (*Server) ListenAndServe

func (server *Server) ListenAndServe()

func (*Server) LogErrors

func (server *Server) LogErrors()

func (*Server) ReadServeAddr

func (server *Server) ReadServeAddr()

func (*Server) Watch

func (server *Server) Watch()

Jump to

Keyboard shortcuts

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