webserver

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(bindAddr, webroot string) *http.Server

New creates a new webserver and starts it

func Start

func Start(srv *http.Server)

Types

type Config

type Config struct {
	Enable  bool   `toml:"enable"`
	Bind    string `toml:"bind"`
	Webroot string `toml:"webroot"`
}

Jump to

Keyboard shortcuts

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