Documentation ¶
Overview ¶
The Main function of HTTPMS. It should set everything up, create a library and create a webserver.
At the moment it is in package src because I import it from the project's root folder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PidFile string Debug bool )
Functions ¶
func Main ¶
func Main()
This function is the only thing run in the project's root main.go file. For all intent and purposes this is the main function.
func ParseConfigAndStartWebserver ¶
Parses the config, sets the logfile, setups the pidfile, and makes an signal handler goroutine
func SetupPidFileAndSignals ¶
func SetupPidFileAndSignals(pidFile string)
Creates a pidfile and starts a signal receiver goroutine
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
The module is resposible for finding, parsing and merging the HTTPMS user configuration with the default.
|
The module is resposible for finding, parsing and merging the HTTPMS user configuration with the default. |
This package is resposible for making sure HTTPMS will run smoothly even after the calling terminal has been closed.
|
This package is resposible for making sure HTTPMS will run smoothly even after the calling terminal has been closed. |
Contains few helpers functions which are used througout the project
|
Contains few helpers functions which are used througout the project |
This module deals with the actual media library.
|
This module deals with the actual media library. |
This module contains the webserver whcih deals with processing requests from the user, presenting him with the interface of the application.
|
This module contains the webserver whcih deals with processing requests from the user, presenting him with the interface of the application. |
Click to show internal directories.
Click to hide internal directories.