src

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2014 License: GPL-3.0 Imports: 10 Imported by: 0

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

func ParseConfigAndStartWebserver(projRoot string) error

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.

Jump to

Keyboard shortcuts

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