Help us shape the future of Go! Take the 2026 Go Developer Survey

httpserver

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port string
}

Config ... configuration for this server

type HTTPServer

type HTTPServer struct {
	Router *router.Router
	Log    *log.Log
}

HTTPServer ...

func New

func New(path string, log *log.Log) (httpServer *HTTPServer, err error)

New ... creates a new HttpServer

func (*HTTPServer) Start

func (httpServer *HTTPServer) Start(staticDir string) (err error)

Start ... starts the server

Jump to

Keyboard shortcuts

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