src

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package src contains the de-facto main function of the application. 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. This way the source is in the `src/` directory.

Index

Constants

This section is empty.

Variables

View Source
var (
	// PidFile is populated by an command line argument. Will be a filesystem path.
	// Nedomi will save its Process ID in this file.
	PidFile string

	// Debug is populated by an command line argument.
	Debug bool

	// ShowVersion would be true when the -v flag is used
	ShowVersion bool
)
View Source
var Version = "dev-unreleased"

Version stores the current verion of HTTPMS. It is set during building.

Functions

func Main

func Main()

Main is the only thing run in the project's root main.go file. For all intent and purposes this is the main function.

Types

This section is empty.

Directories

Path Synopsis
Package config is resposible for finding, parsing and merging the HTTPMS user configuration with the default.
Package config is resposible for finding, parsing and merging the HTTPMS user configuration with the default.
Package daemon is resposible for making sure HTTPMS will run smoothly even after the calling terminal has been closed.
Package daemon is resposible for making sure HTTPMS will run smoothly even after the calling terminal has been closed.
Package helpers contains few helpers functions which are used throughout the project
Package helpers contains few helpers functions which are used throughout the project
Package library deals with the actual media library.
Package library deals with the actual media library.
Package webserver contains the webserver which deals with processing requests from the user, presenting him with the interface of the application.
Package webserver contains the webserver which 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