Files
servtex/globals/memory.go
Maximilian Wagner a6214e022f SSE in working state
2025-12-26 01:37:23 +01:00

41 lines
886 B
Go

package globals
import (
"os"
"sync"
)
type Config struct {
// general
LogLevel string `json:"logLevel"`
LogLevelNumeric int
LogFilePath string `json:"logFilePath"`
// latex
LatexEngine string `json:"latexEngine"`
LatexSourceFilePath string `json:"latexSourceFilePath"`
LatexOutputPath string `json:"latexOutputPath"`
// webserver
WebserverDomain string `json:"webserverDomain"`
WebserverPort string `json:"webserverPort"`
WebserverSecure bool `json:"webserverSecure"`
WebserverPortSecure string `json:"webserverPortSecure"`
CertificatePath string `json:"certificatePath"`
CertificateKeyPath string `json:"certificateKeyPath"`
Timezone string `json:"timezone"`
}
var AppConfig Config
type LatexExecution struct {
ExecutionLock sync.Mutex
ExecutionState string
Timestamp string
Output []byte
}
var LatexExec LatexExecution
var LogFile *os.File