Documentation
¶
Overview ¶
Package helpers contains few helpers functions which are used throughout the project
Index ¶
Constants ¶
const HttpmsDir = ".httpms"
HttpmsDir is the name of the HTTPMS directory in the user's home directory
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
AbsolutePath returns absolute path. If path is already absolute leave it be. If not join it with relativeRoot
func ProjectRoot ¶
ProjectRoot returns the root directory. This is the place where the app is installed or the place where the source is stored if in development or installed with go get
func ProjectUserPath ¶
ProjectUserPath returns the directory in which user files should be stored. Creates it is missing. User files are thing such as sqlite files, logfiles and user configs.
func RemovePidFile ¶
func RemovePidFile(PidFile string)
RemovePidFile just removes the pidFile. The argument should be file path.
func SetLogsFile ¶
SetLogsFile sets the logfile of the server
func SetUpPidFile ¶
func SetUpPidFile(PidFile string)
SetUpPidFile will create the pidfile and it will contain the processid of the current process
Types ¶
This section is empty.