webserver

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: AGPL-3.0 Imports: 3 Imported by: 1

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