webserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: ISC Imports: 22 Imported by: 0

Documentation

Overview

Package webserver is the newest webserver.

Index

Constants

This section is empty.

Variables

Auth is the server authentication service.

View Source
var Bind string

Bind is the string to bind to, as extracted from the configuration file.

It is available only after Configure is called.

Conf is the webserver configuration page.

It is available only after Configure is called.

Mux is the *http.ServeMux.

It is available only after Configure is called.

View Source
var Port string

Port is the port to bind to or "unix" for a UNIX socket, as extracted from the configuration file.

It is available only after Configure is called.

View Source
var Server *http.Server

Server is the *http.Server.

It is available only after Configure is called.

View Source
var SessMgr *scs.SessionManager

SessMgr is the session manager service.

View Source
var Wikis map[string]*WikiInfo

Wikis is all wikis served by this webserver.

Functions

func Configure

func Configure(confFile string)

Configure parses a configuration file and initializes webserver.

If any errors occur, the program is terminated.

func Listen

func Listen()

Listen runs the webserver indefinitely.

Configure must be called first. If any errors occur, the program is terminated.

Types

type WikiInfo

type WikiInfo struct {
	Name  string // wiki shortname
	Title string // wiki title from @name in the wiki config
	Host  string

	*wiki.Wiki
	// contains filtered or unexported fields
}

WikiInfo represents a wiki hosted on this webserver.

Jump to

Keyboard shortcuts

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