net

package
v0.0.0-...-8ab5bc6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Handlers []string
}

func (*Server) Register

func (s *Server) Register(path string, handler http.Handler)

Register end points and an object that has a ServeHTTP method

func (*Server) Run

func (s *Server) Run(addr, path string)

Run the web server for HTML in path under the given address string example "0.0.0.0:8080"

type WebSocket

type WebSocket struct {
	websocket.Conn
}

func (WebSocket) ServeHTTP

func (ws WebSocket) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP

Jump to

Keyboard shortcuts

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