web

package
v0.0.0-...-0c294a2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileServer

type FileServer struct {

	// http handler to serve files
	Handler http.Handler
}

FileServer implements simple HTTP file server that can serve a custom 404 page

func (*FileServer) ServeHTTP

func (f *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Server

type Server struct {
	FileHandler   *FileServer
	UserService   *users.UserService
	Checker       *checkers.Checker
	TypTopChecker *typtop.Checker
}

Server handles HTTP traffic from client

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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